]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-charset: Fixed compile warning caused by earlier commit.
authorTimo Sirainen <tss@iki.fi>
Sat, 16 May 2015 10:50:48 +0000 (13:50 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 16 May 2015 10:50:48 +0000 (13:50 +0300)
This UNICODE_REPLACEMENT_CHAR_UTF8 part of the change was actually supposed
to be a separate commit..

src/lib-charset/charset-iconv.c

index 09eb6a87724740a23363a4c38740a191bdb74936..ca3e8be8b39f93ea8669d4df72af38fe80eb3846 100644 (file)
@@ -118,7 +118,8 @@ charset_to_utf8(struct charset_translation *t,
 
                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++;