diff options
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 3ddc8abf74..510a4e3735 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1190,10 +1190,10 @@ header_encode_string(const unsigned char *in) out = g_string_append_len(out, start, inptr-start); break; case 1: - rfc2047_encode_word(out, start, inptr-start-1, "ISO-8859-1", IS_ESAFE); + rfc2047_encode_word(out, start, inptr-start, "ISO-8859-1", IS_ESAFE); break; case 2: - rfc2047_encode_word(out, start, inptr-start-1, + rfc2047_encode_word(out, start, inptr-start, camel_charset_best(start, inptr-start-1), IS_ESAFE); break; } |