Quick fix for #47

This commit is contained in:
Eelco Dolstra
2015-07-10 18:12:37 +02:00
parent c90e0381dd
commit f6886c2c33

View File

@@ -248,7 +248,7 @@ static void readFile(string fileName, mode_t * fileMode)
if (stat(fileName.c_str(), &st) != 0) error("stat"); if (stat(fileName.c_str(), &st) != 0) error("stat");
fileSize = st.st_size; fileSize = st.st_size;
*fileMode = st.st_mode; *fileMode = st.st_mode;
maxSize = fileSize + 8 * 1024 * 1024; maxSize = fileSize + 32 * 1024 * 1024;
contents = (unsigned char *) malloc(fileSize + maxSize); contents = (unsigned char *) malloc(fileSize + maxSize);
if (!contents) abort(); if (!contents) abort();