From 2398bc02f471e5c398512331a0971a95640a3d77 Mon Sep 17 00:00:00 2001 From: "Daniel G. Taylor" Date: Sun, 13 Jul 2014 18:35:13 -0700 Subject: [PATCH] Re-add removed malloc call, apparently required on Linux --- src/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util.c b/src/util.c index 02901ba..4560436 100644 --- a/src/util.c +++ b/src/util.c @@ -26,6 +26,7 @@ long readFile(char *name, void **buffer) { } } + *buffer = malloc(sizeof chunk); while ((bytesRead = fread(chunk, 1, sizeof chunk, file)) > 0) { unsigned char *reallocated = realloc(*buffer, fileLen + bytesRead); if (reallocated) {