From e0439446b7eb558d12372cb6be39ada0d67db6a6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Mar 2006 05:51:46 +0000 Subject: conf.c: correctly parse "~username/file" in config files git-svn-id: https://svn.musicpd.org/mpd/trunk@3922 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf.c') 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); -- cgit v1.2.3