mirror of
https://github.com/NixOS/patchelf.git
synced 2025-10-24 11:42:50 +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");
|
||||
fileSize = st.st_size;
|
||||
*fileMode = st.st_mode;
|
||||
maxSize = fileSize + 8 * 1024 * 1024;
|
||||
maxSize = fileSize + 32 * 1024 * 1024;
|
||||
|
||||
contents = (unsigned char *) malloc(fileSize + maxSize);
|
||||
if (!contents) abort();
|
||||
|
||||
Reference in New Issue
Block a user