From e3ffcb455e0376053451ce968e6c71ef37708222 Mon Sep 17 00:00:00 2001 From: Paul <paul@claws-mail.org> Date: Tue, 22 Dec 2015 11:17:02 +0000 Subject: [PATCH] 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 --- src/codeconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == '$') { -- 2.3.10