]> granicus.if.org Git - mutt/commitdiff
Don't sign-extend chars.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 3 Jul 2001 17:05:47 +0000 (17:05 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 3 Jul 2001 17:05:47 +0000 (17:05 +0000)
pgppubring.c

index 3daa54c491920da1ee6fee6d3e971b32418339ae..5cfd6a78739bd0a887dcdf381954bdd1b6df2062 100644 (file)
@@ -768,7 +768,7 @@ static void print_userid (const char *id)
     if (*id >= ' ' && *id <= 'z' && *id != ':')
       putchar (*id);
     else
-      printf ("\\x%02x", *id);
+      printf ("\\x%02x", (*id) & 0xff);
   }
 }