diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-05-16 06:24:06 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-05-16 06:24:06 +0000 |
commit | 6844db8b014e21b7744ff6617df8f652c5a8b716 (patch) | |
tree | 583c419615d82414615096b3b12e0872ae1eacb1 /handler.c | |
parent | 7ce926170cda0b4efc581c8323edcc9f04b36aa1 (diff) |
Fix base64 decoding.
Diffstat (limited to 'handler.c')
-rw-r--r-- | handler.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |