fix big output

This commit is contained in:
Andrew Pamment 2017-03-30 23:11:28 +10:00
parent e12536752e
commit e6f7246e63

2
deps/aha/aha.c vendored
View File

@ -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);
} }