Fix endless loop when reading a config file.

This commit is contained in:
Olaf Dietsche
2015-07-07 15:16:08 +02:00
parent bab1bb1acf
commit d5cd06e3cb

View File

@ -675,9 +675,12 @@ sb_list_t *read_config(FILE *fp, sb_list_t *options)
{
/* Empty */
}
if (tmp[optlen] != '\0')
tmp[optlen++] = '\0';
add_value(&newopt->values, tmp);
tmp += optlen;
}
}
}