summaryrefslogtreecommitdiffstats
path: root/cfgparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'cfgparser.c')
-rw-r--r--cfgparser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cfgparser.c b/cfgparser.c
index fe7d4e035d..b2319fb4f3 100644
--- a/cfgparser.c
+++ b/cfgparser.c
@@ -257,7 +257,8 @@ int parse_config_file(struct config *conf, char *conffile)
++line_pos;
/* read the parameter */
- for (param_pos = 0; isalnum(line[line_pos]); /* NOTHING */) {
+ for (param_pos = 0; isprint(line[line_pos]) && !isspace(line[line_pos]);
+ /* NOTHING */) {
param[param_pos++] = line[line_pos++];
if (param_pos >= MAX_PARAM_LEN) {
PRINT_LINENUM;