projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix 2fb1dd2271e5be9d0b0c9cbd4e7d6d5d51aaecb9
[mmh]
/
sbr
/
fmt_rfc2047.c
diff --git
a/sbr/fmt_rfc2047.c
b/sbr/fmt_rfc2047.c
index
faa3cc2
..
4145139
100644
(file)
--- a/
sbr/fmt_rfc2047.c
+++ b/
sbr/fmt_rfc2047.c
@@
-209,7
+209,7
@@
decode_rfc2047(char *str, char *dst, size_t dstlen)
if (use_iconv) {
saveq = q;
savedstlen = dstlen;
if (use_iconv) {
saveq = q;
savedstlen = dstlen;
- q = convbuf = (char *) mh_xmalloc(endofmime - startofmime);
+ q = convbuf = mh_xcalloc(endofmime - startofmime, sizeof(char));
}
/*
** ADDCHR2 is for adding characters when q is or might be convbuf:
}
/*
** ADDCHR2 is for adding characters when q is or might be convbuf:
@@
-337,7
+337,7
@@
decode_rfc2047(char *str, char *dst, size_t dstlen)
if (!dstlen || !savedstlen)
goto buffull;
dstlen = savedstlen;
if (!dstlen || !savedstlen)
goto buffull;
dstlen = savedstlen;
- free(convbuf);
+ mh_free0(&convbuf);
}
#endif
}
#endif