mirror of
https://github.com/NixOS/patchelf.git
synced 2025-10-25 04:35:29 +08:00
Quick fix for #47
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user