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
/
popsbr.c
diff --git
a/uip/popsbr.c
b/uip/popsbr.c
index
d1bbafc
..
9d5f312
100644
(file)
--- a/
uip/popsbr.c
+++ b/
uip/popsbr.c
@@
-1238,12
+1238,7
@@
sasl_fgetc(FILE *f)
}
if (retbufsize > size) {
}
if (retbufsize > size) {
- buffer = realloc(buffer, retbufsize);
- if (!buffer) {
- snprintf(response, sizeof(response), "Error during realloc in "
- "read routine: %s", strerror(errno));
- return -2;
- }
+ buffer = mh_xrealloc(buffer, retbufsize);
size = retbufsize;
}
size = retbufsize;
}