OSDN Git Service

Fix: CRLF & Q-encode & softwrap breaks result.
authorNARUSE Yui <naruse@users.sourceforge.jp>
Wed, 21 Oct 2009 11:27:34 +0000 (20:27 +0900)
committerNARUSE Yui <naruse@users.sourceforge.jp>
Wed, 21 Oct 2009 11:27:34 +0000 (20:27 +0900)
Reported and patched by efialtes.
http://sourceforge.jp/ticket/browse.php?group_id=248&tid=19254

nkf.c

diff --git a/nkf.c b/nkf.c
index aab1bcd..b35d02f 100644 (file)
--- a/nkf.c
+++ b/nkf.c
@@ -4439,7 +4439,7 @@ mime_getc(FILE *f)
        }
        if (c1=='='&&c2<SP) { /* this is soft wrap */
            while((c1 =  (*i_mgetc)(f)) <=SP) {
-               if ((c1 = (*i_mgetc)(f)) == EOF) return (EOF);
+               if (c1 == EOF) return (EOF);
            }
            mime_decode_mode = 'Q'; /* still in MIME */
            goto restart_mime_q;