From a7da6d12318d150c91850c6693b0710e47b731b2 Mon Sep 17 00:00:00 2001 From: szabii Date: Mon, 19 Mar 2001 13:12:48 +0000 Subject: [PATCH] parameter reading fixed in parse_config_file git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@159 b3059339-0415-0410-9bf9-f77b7e298cf2 --- cfgparser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;