diff options
author | Michael Elkins <me@sigpipe.org> | 2013-01-14 08:50:48 -0800 |
---|---|---|
committer | Michael Elkins <me@sigpipe.org> | 2013-01-14 08:50:48 -0800 |
commit | 45b3ee7cce60a606b4cb887a8435c00d7193f9dd (patch) | |
tree | 8e775a0ad2817f8ca8d1d5b805d621395bc61df2 /handler.c | |
parent | dd77477b6904947a67663dbecabee46946522119 (diff) |
avoid debug warning about trailing whitespace in a base64 encoded attachment
closes #3558
Diffstat (limited to 'handler.c')
-rw-r--r-- | handler.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |