diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2010-03-01 23:49:01 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2010-03-01 23:49:01 +0000 |
commit | fcf1058d6bab4e80466f910ed42ab65ddaa93e2b (patch) | |
tree | 4a8638d522c604a8954a4beaeafe5bf2cc81c081 /ext/iconv | |
parent | a3ec3b003dc6b5e23d138c5aab6052668d9514dc (diff) | |
download | php-git-fcf1058d6bab4e80466f910ed42ab65ddaa93e2b.tar.gz |
Fix bug #43314
Assume worst case all-encoded case here
Diffstat (limited to 'ext/iconv')
-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 961d676a7e..cdff2982d5 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -1267,7 +1267,7 @@ static php_iconv_err_t _php_iconv_mime_encode(smart_str *pretval, const char *fn break; } - out_size -= ((nbytes_required - (char_cnt - 2)) + 1) / (3 - 1); + out_size -= ((nbytes_required - (char_cnt - 2)) + 1) / 3; in_left = ini_in_left; in_p = ini_in_p; } |