summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorMichael Elkins <me@sigpipe.org>2013-01-14 08:50:48 -0800
committerMichael Elkins <me@sigpipe.org>2013-01-14 08:50:48 -0800
commit45b3ee7cce60a606b4cb887a8435c00d7193f9dd (patch)
tree8e775a0ad2817f8ca8d1d5b805d621395bc61df2 /handler.c
parentdd77477b6904947a67663dbecabee46946522119 (diff)
avoid debug warning about trailing whitespace in a base64 encoded attachment
closes #3558
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/handler.c b/handler.c
index 13c89ecc..fa4e48d0 100644
--- a/handler.c
+++ b/handler.c
@@ -306,8 +306,10 @@ void mutt_decode_base64 (STATE *s, long len, int istext, iconv_t cd)
}
if (i != 4)
{
- dprint (2, (debugfile, "%s:%d [mutt_decode_base64()]: "
- "didn't get a multiple of 4 chars.\n", __FILE__, __LINE__));
+ /* "i" may be zero if there is trailing whitespace, which is not an error */
+ if (i != 0)
+ dprint (2, (debugfile, "%s:%d [mutt_decode_base64()]: "
+ "didn't get a multiple of 4 chars.\n", __FILE__, __LINE__));
break;
}