projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace mh_xmalloc() with mh_xcalloc()
[mmh]
/
sbr
/
mf.c
diff --git
a/sbr/mf.c
b/sbr/mf.c
index
633522b
..
3134328
100644
(file)
--- a/
sbr/mf.c
+++ b/
sbr/mf.c
@@
-42,7
+42,7
@@
getcpy(char *s)
for(;;)
pause();
}
- p = mh_xmalloc((size_t) (strlen(s) + 2));
+ p = mh_xcalloc((size_t) (strlen(s) + 2), sizeof(char));
strcpy(p, s);
return p;
}