diff options
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf.c b/src/conf.c index 0fd3dda95..756fef9f9 100644 --- a/src/conf.c +++ b/src/conf.c @@ -215,7 +215,7 @@ static ConfigParam * readConfigBlock(FILE * fp, int * count, char * string) { { ERROR("improperly formatted config file at line %i:" " %s\n", count, string); - ERROR("in block begging at line %i\n", ret->line); + ERROR("in block begining at line %i\n", ret->line); exit(EXIT_FAILURE); } @@ -268,7 +268,7 @@ void readConf(char * file) { } if(!findInList(configEntriesList, array[0], &voidPtr)) { - ERROR("unrecognized paramater in config file at line " + ERROR("unrecognized parameter in config file at line " "%i: %s\n", count, string); exit(EXIT_FAILURE); } @@ -279,7 +279,7 @@ void readConf(char * file) { entry->configParamList->numberOfNodes) { param = entry->configParamList->firstNode->data; - ERROR("config paramter \"%s\" is first defined on line " + ERROR("config parameter \"%s\" is first defined on line " "%i and redefined on line %i\n", array[0], param->line, count); exit(EXIT_FAILURE); @@ -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); |