From: Paul Date: Tue, 22 Dec 2015 11:17:02 +0000 (+0000) Subject: fix bug 3584, 'After 3.13.1, characters in some Japanese codec are never correctly... X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=e3ffcb455e0376053451ce968e6c71ef37708222 fix bug 3584, 'After 3.13.1, characters in some Japanese codec are never correctly converted to internal ones' Thanks to honda@math.sci.hokudai.ac.jp --- diff --git a/src/codeconv.c b/src/codeconv.c index 39e259f..f0ed616 100644 --- a/src/codeconv.c +++ b/src/codeconv.c @@ -158,7 +158,7 @@ static gint conv_jistoeuc(gchar *outbuf, gint outlen, const gchar *inbuf) gchar *out = outbuf; JISState state = JIS_ASCII; - while (*in != '\0' && (out - outbuf) > outlen - 3) { + while (*in != '\0' && (out - outbuf) < outlen - 3) { if (*in == ESC) { in++; if (*in == '$') {