about summary refs log tree commit diff
path: root/rfc2047.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-12 13:37:51 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-12 13:37:51 +0200
commit3ce49fb4608b760f43dda182ac5e3c95bfd424cd (patch)
tree741bef9a1005cf8513e1269831e393da72a97e19 /rfc2047.c
parent3bb545296414c7bc4795a206ab3eb7d06e736047 (diff)
downloadmblaze-3ce49fb4608b760f43dda182ac5e3c95bfd424cd.tar.gz
mblaze-3ce49fb4608b760f43dda182ac5e3c95bfd424cd.tar.xz
mblaze-3ce49fb4608b760f43dda182ac5e3c95bfd424cd.zip
fix unsigned computation
Diffstat (limited to 'rfc2047.c')
-rw-r--r--rfc2047.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc2047.c b/rfc2047.c
index 40f750e..7aa824b 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -168,7 +168,7 @@ blaze822_decode_rfc2047(char *dst, char *src, size_t dlen, char *tgtenc)
 		b = stop + 2;
 	} while (s = strstr(b, "=?"));
 
-	while (*b && dlen-- >= 0)
+	while (*b && dlen-- > 0)
 		*dst++ = *b++;
 
 	*dst = 0;