diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-03-16 05:51:46 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-03-16 05:51:46 +0000 |
commit | e0439446b7eb558d12372cb6be39ada0d67db6a6 (patch) | |
tree | 6074abc70cbf57f7a238cffdcef571c4229b3d08 /src | |
parent | 89fc5da5d91a00d1b2b59f5e0056babcd678fbeb (diff) | |
download | mpd-e0439446b7eb558d12372cb6be39ada0d67db6a6.tar.gz mpd-e0439446b7eb558d12372cb6be39ada0d67db6a6.tar.xz mpd-e0439446b7eb558d12372cb6be39ada0d67db6a6.zip |
conf.c: correctly parse "~username/file" in config files
git-svn-id: https://svn.musicpd.org/mpd/trunk@3922 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf.c b/src/conf.c index a78c7afc1..756fef9f9 100644 --- a/src/conf.c +++ b/src/conf.c @@ -416,7 +416,7 @@ ConfigParam * parseConfigFilePath(char * name, int force) { for(;*ch!='\0' && *ch!='/';ch++); if(*ch=='/') foundSlash = 1; * ch = '\0'; - pos+= ch-path+1; + pos+= ch-path-1; if((pwd = getpwnam(path+1)) == NULL) { ERROR("user \"%s\" not found at line %i\n", path+1, param->line); |