fix big output
This commit is contained in:
parent
e12536752e
commit
e6f7246e63
2
deps/aha/aha.c
vendored
2
deps/aha/aha.c
vendored
@ -85,7 +85,7 @@ void deleteParse(pelem elem)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void append_output(char **output, char *stuff, int *size, int *at) {
|
void append_output(char **output, char *stuff, int *size, int *at) {
|
||||||
if (*at + strlen(stuff) + 1 >= *size) {
|
while (*at + strlen(stuff) + 1 >= *size) {
|
||||||
*size += 256;
|
*size += 256;
|
||||||
*output = realloc(*output, *size);
|
*output = realloc(*output, *size);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user