Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates-src > by-pkgid > 9da900973f08f8af3908c198814d8a5f > files > 2

claws-mail-3.11.1-3.1.mga5.src.rpm

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