]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Mon, 25 Dec 2006 20:44:45 +0000 (20:44 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 25 Dec 2006 20:44:45 +0000 (20:44 +0000)
ext/iconv/iconv.c

index 9cfdf8bebb72769817296bcd8003adf4e23d71fd..5ff1d0abbb9c0ea45a6498b735c70011d8f0c884 100644 (file)
@@ -1040,7 +1040,7 @@ static php_iconv_err_t _php_iconv_mime_encode(smart_str *pretval, const char *fn
                goto out;
        }
 
-       buf = emalloc(max_line_len + 5);
+       buf = safe_emalloc(1, max_line_len, 5);
 
        char_cnt = max_line_len;