From: itojun Date: Wed, 21 Jun 2000 09:08:34 +0000 (+0000) Subject: fix safeputc, the if statment was completely reversed X-Git-Tag: tcpdump-3.5.1~253 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/76c5a0bdc1039e9c65b7e14bc33c20a5f61832a3 fix safeputc, the if statment was completely reversed --- diff --git a/util.c b/util.c index 9571cbb5..7806a9f0 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.66 2000-06-10 08:11:12 assar Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/util.c,v 1.67 2000-06-21 09:08:34 itojun Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -356,7 +356,7 @@ safeputchar(int c) ch = (unsigned char)(c & 0xff); if (c < 0x80 && isprint(c)) - printf("\\%03o", c & 0xff); - else printf("%c", c & 0xff); + else + printf("\\%03o", c & 0xff); }