diff options
-rw-r--r-- | run.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -85,7 +85,7 @@ char *run(int count, char **progs[], size_t inputlen, char *inputstr, size_t *ou // if the program produces too much data, you will be killed size_t readed = 0; - size_t cap = 1024*1024; + size_t cap = 2048; char *buf = CKN(malloc(cap*sizeof(char))); size_t remaining = cap; size_t amt = 0; @@ -172,6 +172,7 @@ finish: free(argvs); } free(outbuf); + if (fail) return lua_error(L); return 1; } |