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;
|
||||
}
|
||||
c = getc(inp);
|
||||
if (c == EOF)
|
||||
break;
|
||||
}
|
||||
ungetc(c,inp);
|
||||
*p = '\0';
|
||||
|
|
Loading…
Reference in a new issue