(xundump): Fix rev. 1.19.
This commit is contained in:
parent
86a59e4de4
commit
2ebc947969
1 changed files with 4 additions and 1 deletions
|
@ -494,7 +494,10 @@ xundump(FILE *fp, char *file, int expected_table)
|
||||||
return -1;
|
return -1;
|
||||||
ungetc(ch, fp);
|
ungetc(ch, fp);
|
||||||
|
|
||||||
if (fscanf(fp, "XDUMP%*[ \t]%63[^ \t#\n]%*[ \t]%*[^ \t#\n]", name) != 1)
|
res = -1;
|
||||||
|
if (fscanf(fp, "XDUMP%*[ \t]%63[^ \t#\n]%*[ \t]%*[^ \t#\n]%n",
|
||||||
|
name, &res) != 1
|
||||||
|
|| res < 0)
|
||||||
return gripe("Expected XDUMP header");
|
return gripe("Expected XDUMP header");
|
||||||
if (skipfs(fp) != '\n')
|
if (skipfs(fp) != '\n')
|
||||||
return gripe("Junk after XDUMP header");
|
return gripe("Junk after XDUMP header");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue