From: Dan Turner Date: Sun, 12 Jul 2015 11:15:42 +0000 (+0100) Subject: Fixed typo in new safe malloc. X-Git-Url: http://git.code-monkey.de/?p=umurmur.git;a=commitdiff_plain;h=8cb6ebb5b1511db0e10b34cfd2641b6d7349acf0 Fixed typo in new safe malloc. --- diff --git a/src/memory.c b/src/memory.c index 1a0ed18..8a5f683 100644 --- a/src/memory.c +++ b/src/memory.c @@ -36,7 +36,7 @@ void * Memory_safeMalloc(size_t nmem, size_t size) { // Check if we're going to overflow. - if (size && num > SIZE_MAX / size) + if (size && nmem > SIZE_MAX / size) Log_fatal("Request for memory would've overflowed."); // Allocate the memory requested.