From: guy Date: Tue, 16 Jul 2002 04:03:16 +0000 (+0000) Subject: Clean up "safeputchar()" a bit. X-Git-Tag: tcpdump-3.8-bp~433 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/e36afc3163c00c4a159d16d262c9ae990de6667a?ds=sidebyside Clean up "safeputchar()" a bit. --- diff --git a/util.c b/util.c index 1e451fea..920de6dc 100644 --- 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); }