]> granicus.if.org Git - neomutt/commitdiff
pgppubring: fix signed and unsigned comparison
authorJelle van der Waa <jelle@vdwaa.nl>
Sun, 17 Dec 2017 10:27:05 +0000 (11:27 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 28 Dec 2017 13:25:44 +0000 (13:25 +0000)
Fix size_t and int comparison in pgppubring.

pgppubring.c

index 3f66ea8590edff26b54637171a024813b14ddf15..d29a6a23c05e9b9c61c53364663cfaafa5c6ca33 100644 (file)
@@ -230,7 +230,7 @@ static char *binary_fingerprint_to_string(unsigned char *buf, size_t length)
 
   pf = fingerprint = mutt_mem_malloc((length * 2) + 1);
 
-  for (int i = 0; i < length; i++)
+  for (size_t i = 0; i < length; i++)
   {
     sprintf(pf, "%02X", buf[i]);
     pf += 2;