0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

parameter reading fixed in parse_config_file

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@159 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
szabii 2001-03-19 13:12:48 +00:00
parent d483651798
commit a7da6d1231

View File

@ -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;