Properly handles files ending in a partial line.

This commit is contained in:
dtrg 2008-03-20 22:50:50 +00:00
parent 4dd1ff6d80
commit fc44fe2185

View file

@ -562,6 +562,8 @@ instr_p read_instr()
return ip;
}
c = getc(inp);
if (c == EOF)
break;
}
ungetc(c,inp);
*p = '\0';