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) {
|
if (a == EOF) {
|
||||||
tbl[i] = '\0';
|
tbl[i] = '\0';
|
||||||
xrealloc (tbl, i + 1);
|
tbl = xrealloc (tbl, i + 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (IsSpace (a)) {
|
if (IsSpace (a)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user