fixed bugs, added No_Mem()

This commit is contained in:
eck
1990-02-21 16:38:45 +00:00
parent 1228fe1baf
commit 64e1fa33d3
5 changed files with 11 additions and 6 deletions

View File

@@ -53,7 +53,7 @@ do_pragma()
*c_ptr = '\0';
while(c != '\n') {
if (c_ptr + 1 - cur_line == size) {
cur_line = Realloc(cur_line, size + ITEXTSIZE);
cur_line = Realloc(cur_line, size += ITEXTSIZE);
c_ptr = cur_line + size - 1;
}
*c_ptr++ = c;