fix bug 3584, 'After 3.13.1, characters in some Japanese codec are never correctly...
[claws.git] / src / codeconv.c
index 39e259fc6bf31c9f89a591ec5e830fb6de1b3be0..f0ed61677072db919f235117263ac208132b26f6 100644 (file)
@@ -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 == '$') {