diff options
author | Adam Harvey <aharvey@php.net> | 2010-05-04 11:56:59 +0000 |
---|---|---|
committer | Adam Harvey <aharvey@php.net> | 2010-05-04 11:56:59 +0000 |
commit | 73ddb796137d32dc8586cb27e86a7599b138b3cf (patch) | |
tree | 40c39e0ba0df6da3ed760ec8b07334b9ee85162e /ext/iconv/iconv.c | |
parent | 9d672737407ed5979ec4dfd7e952500fda1c566e (diff) | |
download | php-git-73ddb796137d32dc8586cb27e86a7599b138b3cf.tar.gz |
Fix for bug #48289 (iconv_mime_encode() quoted-printable scheme is broken).
Thanks to Hiroaki Kawai for the original patch.
Diffstat (limited to 'ext/iconv/iconv.c')
-rw-r--r-- | ext/iconv/iconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 9ab771889a..7f90d6df5d 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -1206,7 +1206,7 @@ static php_iconv_err_t _php_iconv_mime_encode(smart_str *pretval, const char *fn prev_in_left = ini_in_left = in_left; ini_in_p = in_p; - for (out_size = char_cnt; out_size > 0;) { + for (out_size = (char_cnt - 2) / 3; out_size > 0;) { size_t prev_out_left; nbytes_required = 0; |