diff options
Diffstat (limited to 'rfc2047.c')
-rw-r--r-- | rfc2047.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rfc2047.c b/rfc2047.c index 2d8d015..47d1e80 100644 --- a/rfc2047.c +++ b/rfc2047.c @@ -172,16 +172,19 @@ blaze822_decode_rfc2047(char *dst, char *src, size_t dlen, char *tgtenc) iconv_close(ic); - while (declen-- && dlen) { + while (declen && dlen) { *dst++ = *dec++; + declen--; dlen--; } b = stop + 2; } while (dlen && (s = strstr(b, "=?"))); - while (*b && dlen-- > 0) + while (*b && dlen > 0) { *dst++ = *b++; + dlen--; + } *dst = 0; |