mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +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:
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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user