projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f09c875
)
Comment.
author
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 15 Dec 2004 05:53:19 +0000
(
05:53
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 15 Dec 2004 05:53:19 +0000
(
05:53
+0000)
src/threads/malloc.c
patch
|
blob
|
history
diff --git
a/src/threads/malloc.c
b/src/threads/malloc.c
index 0cb5f9d997def46ce1570b40eb5d9e1195216f3c..8e6b4591ea87ecae09337ae5d741c89a68bdcb9a 100644
(file)
--- a/
src/threads/malloc.c
+++ b/
src/threads/malloc.c
@@
-161,7
+161,7
@@
calloc (size_t a, size_t b)
void *p;
size_t size;
- /* Calculate block size. */
+ /* Calculate block size
and make sure it fits in size_t
. */
size = a * b;
if (size < a || size < b)
return NULL;