about summary refs log tree commit diff
path: root/rfc2231.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc2231.c')
-rw-r--r--rfc2231.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rfc2231.c b/rfc2231.c
index c0edaff..cc36970 100644
--- a/rfc2231.c
+++ b/rfc2231.c
@@ -111,8 +111,8 @@ found_plain:
 	size_t dstlen = dst - dststart;
 	dst = dststart;
 
-	int r = iconv(ic, &dst, &dstlen, &tmpend, &tmplen);
-	if (r < 0) {
+	size_t r = iconv(ic, &dst, &dstlen, &tmpend, &tmplen);
+	if (r == (size_t)-1) {
 		free(tmp);
 		return 1;
 	}