fixed typo in read_line() fscanf...

This commit is contained in:
Stefan SChippers 2020-10-03 19:50:29 +02:00
parent 34a929f2bf
commit cd556d4d6e
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ char *read_line(FILE *fp, int dbg_level)
int first = 0, items;
ret[0] = '\0';
while((items = fscanf(fp, "%298[^\r\n]s", s)) > 0) {
while((items = fscanf(fp, "%298[^\r\n]", s)) > 0) {
if(!first) {
dbg(dbg_level, "SKIPPING |");
my_strncpy(ret, s, S(ret)); /* store beginning of line for return */