summary refs log tree commit diff
path: root/rfc2047.c
diff options
context:
space:
mode:
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;