summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorEdmund GRIMLEY EVANS <edmundo@rano.org>2002-12-16 20:28:46 +0000
committerEdmund GRIMLEY EVANS <edmundo@rano.org>2002-12-16 20:28:46 +0000
commitd4d345b981717d1bbff2714663d90ff0dc3e64d9 (patch)
tree481d3983fa1d962b944a2b970b91ccf9cb76f7f1 /handler.c
parent5e88e418f7d8aceacfdce57b40be19a3c0290f21 (diff)
Fix #1424.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/handler.c b/handler.c
index 4f18f733..d065c65e 100644
--- a/handler.c
+++ b/handler.c
@@ -296,8 +296,8 @@ void mutt_decode_base64 (STATE *s, long len, int istext, iconv_t cd)
for (i = 0 ; i < 4 && len > 0 ; len--)
{
if ((ch = fgetc (s->fpin)) == EOF)
- return;
- if (!ISSPACE (ch))
+ break;
+ if (ch >= 0 && ch < 128 && (base64val(ch) != -1 || ch == '='))
buf[i++] = ch;
}
if (i != 4)