projects
/
umurmur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a0ba1
)
Fixed typo in new safe malloc.
author
Dan Turner
<dan.turner@york.ac.uk>
Sun, 12 Jul 2015 11:15:42 +0000
(12:15 +0100)
committer
Felix Morgner
<felix.morgner@gmail.com>
Mon, 13 Jul 2015 08:13:22 +0000
(10:13 +0200)
src/memory.c
patch
|
blob
|
history
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.
- 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.