projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* patch #3967: Create a mh_xrealloc function to prevent mistakes when
[mmh]
/
uip
/
mhlist.c
diff --git
a/uip/mhlist.c
b/uip/mhlist.c
index
56d9398
..
03480b3
100644
(file)
--- a/
uip/mhlist.c
+++ b/
uip/mhlist.c
@@
-264,9
+264,8
@@
do_cache:
*/
if (nummsgs >= maxmsgs) {
maxmsgs += MAXMSGS;
*/
if (nummsgs >= maxmsgs) {
maxmsgs += MAXMSGS;
- if (!(msgs = (char **) realloc (msgs,
- (size_t) (maxmsgs * sizeof(*msgs)))))
- adios (NULL, "unable to reallocate msgs storage");
+ msgs = (char **) mh_xrealloc (msgs,
+ (size_t) (maxmsgs * sizeof(*msgs)));
}
msgs[nummsgs++] = cp;
}
}
msgs[nummsgs++] = cp;
}