Browse Source

Prevent a character from being wrongly doubled in the buffer.

PEAR_1_4DEV
Moriyoshi Koizumi 23 years ago
parent
commit
06232e4818
  1. 2
      ext/iconv/iconv.c

2
ext/iconv/iconv.c

@ -1580,7 +1580,7 @@ static php_iconv_err_t _php_iconv_mime_decode(smart_str *pretval, const char *st
if (err != PHP_ICONV_ERR_SUCCESS) {
if ((mode & PHP_ICONV_MIME_DECODE_CONTINUE_ON_ERROR)) {
/* pass the entire chunk through the converter */
err = _php_iconv_appendl(pretval, encoded_word, (size_t)((p1 + 1) - encoded_word), cd_pl);
err = _php_iconv_appendl(pretval, encoded_word, (size_t)(p1 - encoded_word), cd_pl);
if (err != PHP_ICONV_ERR_SUCCESS) {
goto out;
}

Loading…
Cancel
Save