This commit is contained in:
Frank Denis 2015-12-29 19:13:48 +01:00
parent 6d9f2cae79
commit 2bd822b1c9

View File

@ -101,7 +101,7 @@ int allocate_memory(block_region **region, uint32_t m_cost) {
memcpy(&memory, &base, sizeof memory);
#else
memory = NULL;
if (size + 63 < size) {
if (memory_size + 63 < memory_size) {
base = NULL;
errno = ENOMEM;
} else if ((base = malloc(memory_size + 63)) != NULL) {