aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/conf.c2
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);