From e6f7246e63dbfccbbfdcef8eaa59e9333a6e3ad6 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 30 Mar 2017 23:11:28 +1000 Subject: [PATCH] fix big output --- deps/aha/aha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/aha/aha.c b/deps/aha/aha.c index a129f17..238a22d 100644 --- a/deps/aha/aha.c +++ b/deps/aha/aha.c @@ -85,7 +85,7 @@ void deleteParse(pelem elem) } 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; *output = realloc(*output, *size); }