Properly handles files ending in a partial line.
This commit is contained in:
parent
4dd1ff6d80
commit
fc44fe2185
|
@ -562,6 +562,8 @@ instr_p read_instr()
|
||||||
return ip;
|
return ip;
|
||||||
}
|
}
|
||||||
c = getc(inp);
|
c = getc(inp);
|
||||||
|
if (c == EOF)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
ungetc(c,inp);
|
ungetc(c,inp);
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
Loading…
Reference in a new issue