Mercurial > dovecot > core-2.2
changeset 18717:5c905c8afb02
lib-charset: Fixed compile warning caused by earlier commit.
This UNICODE_REPLACEMENT_CHAR_UTF8 part of the change was actually supposed
to be a separate commit..
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 16 May 2015 13:50:48 +0300 |
parents | ee240e7e4b6e |
children | a7175a018348 |
files | src/lib-charset/charset-iconv.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-charset/charset-iconv.c Sat May 16 13:20:22 2015 +0300 +++ b/src/lib-charset/charset-iconv.c Sat May 16 13:50:48 2015 +0300 @@ -118,7 +118,8 @@ if (result == CHARSET_RET_INVALID_INPUT) { if (prev_invalid_pos != dest->used) { - str_append(dest, UNICODE_REPLACEMENT_CHAR_UTF8); + buffer_append(dest, UNICODE_REPLACEMENT_CHAR_UTF8, + strlen(UNICODE_REPLACEMENT_CHAR_UTF8)); prev_invalid_pos = dest->used; } pos++;