]> The Tcpdump Group git mirrors - tcpdump/blobdiff - util.c
Clean up "safeputchar()" a bit.
[tcpdump] / util.c
diff --git a/util.c b/util.c
index 1e451fea3c0fda01f7f804dedab2ebd513a475c4..920de6dc0d95022b089d948be0724dd548f85fcf 100644 (file)
--- a/util.c
+++ b/util.c
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/util.c,v 1.74 2002-07-16 03:58:16 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/util.c,v 1.75 2002-07-16 04:03:16 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -355,7 +355,7 @@ safeputchar(int c)
 
        ch = (unsigned char)(c & 0xff);
        if (ch < 0x80 && isprint(ch))
-               printf("%c", ch & 0xff);
+               printf("%c", ch);
        else
-               printf("\\%03o", ch & 0xff);
+               printf("\\%03o", ch);
 }