projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed typo in new safe malloc.
[umurmur.git]
/
src
/
memory.c
diff --git
a/src/memory.c
b/src/memory.c
index 1a0ed18b041a4bf71bacacaead9ccbe201e43e63..8a5f6837a98a373a8e00cb730290eb6939dee35c 100644
(file)
--- 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.
void * Memory_safeMalloc(size_t nmem, size_t size) {
// Check if we're going to overflow.
- if (size && n
u
m > SIZE_MAX / size)
+ if (size && n
me
m > SIZE_MAX / size)
Log_fatal("Request for memory would've overflowed.");
// Allocate the memory requested.
Log_fatal("Request for memory would've overflowed.");
// Allocate the memory requested.