talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit e3ffcb455e0376053451ce968e6c71ef37708222
parent dbc705e307faa0109d2faca8e0cfe20087c797fd
Author: Paul <paul@claws-mail.org>
Date:   Tue, 22 Dec 2015 11:17:02 +0000

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

Diffstat:
Msrc/codeconv.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 == '$') {