]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_rfc2047.c
Fix invalid pointer arithmetic.
[nmh] / sbr / fmt_rfc2047.c
index db8bf7859c306fee73ee4b8b66aeb47608120489..8c799e14c77b1197c684ab446c163df018c31b66 100644 (file)
@@ -229,7 +229,7 @@ decode_rfc2047 (char *str, char *dst, size_t dstlen)
            if (use_iconv) {
                saveq = q;
                savedstlen = dstlen;
-                q = convbuf = (char *) mh_xmalloc(endofmime - startofmime);
+                q = convbuf = mh_xmalloc(endofmime - startofmime);
             }
 /* ADDCHR2 is for adding characters when q is or might be convbuf:
  * in this case on buffer-full we want to run iconv before returning.