mirror of
https://github.com/cc65/cc65.git
synced 2025-08-05 17:25:17 +00:00
Fix realloc() bug in gr65
The pointer to the input buffer was not being updated after a call to realloc(), causing the program to crash if realloc() moved the buffer.
This commit is contained in:
committed by
Oliver Schmidt
parent
644d623d31
commit
448aa35f50
@@ -861,7 +861,7 @@ static char *filterInput (FILE *F, char *tbl)
|
||||
}
|
||||
if (a == EOF) {
|
||||
tbl[i] = '\0';
|
||||
xrealloc (tbl, i + 1);
|
||||
tbl = xrealloc (tbl, i + 1);
|
||||
break;
|
||||
}
|
||||
if (IsSpace (a)) {
|
||||
|
Reference in New Issue
Block a user