now it accepts monitor_hfreq...

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@481 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
szabii 2001-04-16 22:13:12 +00:00
parent 6562f4bc47
commit 871b819db0
1 changed files with 5 additions and 2 deletions

View File

@ -284,8 +284,11 @@ int parse_config_file(struct config *conf, char *conffile)
if (line[line_pos] == '\0' || line[line_pos] == '#') if (line[line_pos] == '\0' || line[line_pos] == '#')
continue; continue;
/* read option. accept char if isalnum(char) */ /* read option. */
for (opt_pos = 0; isalnum(line[line_pos]); /* NOTHING */) { for (opt_pos = 0; isprint(line[line_pos]) &&
line[line_pos] != ' ' &&
line[line_pos] != '#' &&
line[line_pos] != '='; /* NOTHING */) {
opt[opt_pos++] = line[line_pos++]; opt[opt_pos++] = line[line_pos++];
if (opt_pos >= MAX_OPT_LEN) { if (opt_pos >= MAX_OPT_LEN) {
PRINT_LINENUM; PRINT_LINENUM;