(xundump): Fix parsing of XDUMP header.
This commit is contained in:
parent
aa63e64107
commit
1e4ecda185
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ xundump(FILE *fp, char *file, int expected_table)
|
|||
} else
|
||||
lineno++;
|
||||
|
||||
if (fscanf(fp, "XDUMP %63s %*d%c", name, &sep) != 2)
|
||||
if (fscanf(fp, "XDUMP%*1[ ]%63s%*1[ ]%*d%c", name, &sep) != 2)
|
||||
return gripe("Expected XDUMP header");
|
||||
if (sep != '\n')
|
||||
return gripe("Junk after XDUMP header");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue