summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-05-16 06:24:06 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-05-16 06:24:06 +0000
commit6844db8b014e21b7744ff6617df8f652c5a8b716 (patch)
tree583c419615d82414615096b3b12e0872ae1eacb1 /handler.c
parent7ce926170cda0b4efc581c8323edcc9f04b36aa1 (diff)
Fix base64 decoding.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/handler.c b/handler.c
index f9cce3d8..39dfff94 100644
--- a/handler.c
+++ b/handler.c
@@ -215,7 +215,11 @@ void mutt_decode_base64 (STATE *s, BODY *b, int istext, DECODER *dec)
buf[i++] = ch;
}
if (i != 4)
- return; /* didn't get a multiple of four chars! */
+ {
+ dprint (2, (debugfile, "%s:%d [mutt_decode_base64()]: "
+ "didn't get a multiple of 4 chars.\n", __FILE__, __LINE__));
+ break;
+ }
c1 = base64val (buf[0]);
c2 = base64val (buf[1]);
@@ -276,6 +280,7 @@ void mutt_decode_base64 (STATE *s, BODY *b, int istext, DECODER *dec)
l = 0;
}
}
+
mutt_decoder_push (dec, NULL, 0, NULL);
mutt_decoder_pop_to_state (dec, s);