fixed typo in read_line() fscanf...
This commit is contained in:
parent
34a929f2bf
commit
cd556d4d6e
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue