#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-decnet.c,v 1.31 2001-01-20 07:22:24 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-decnet.c,v 1.32 2001-01-28 08:06:06 itojun Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
while (x-- > 0) {
c = *dp++;
- if (isprint(c))
- putchar(c);
- else
- printf("\\%o", c & 0xFF);
+ safeputchar(c);
}
}
#endif
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-isakmp.c,v 1.26 2000-12-12 09:20:26 itojun Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-isakmp.c,v 1.27 2001-01-28 08:06:07 itojun Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
{
int i;
printf(" len=%d ", len);
- for (i = 0; i < len; i++) {
- if (isprint(data[i]))
- printf("%c", data[i]);
- else
- printf("\\%03o", data[i]);
- }
+ for (i = 0; i < len; i++)
+ safeputchar(data[i]);
len = 0;
break;
}
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.81 2000-12-23 20:55:22 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-tcp.c,v 1.82 2001-01-28 08:06:07 itojun Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
putchar(' ');
while (length-- && sp <= snapend) {
c = *sp++;
- if (isprint(c))
- putchar(c);
- else
- putchar('.');
+ safeputchar(c);
}
putchar(']');
}
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.12 2000-12-04 00:35:45 guy Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.13 2001-01-28 08:06:08 itojun Exp $";
#endif
#include <sys/param.h>
{
int i;
for (i=0;i<len;i++)
- printf("%c",isprint(buf[i])?buf[i]:'.');
+ safeputchar(buf[i]);
}
static char *name_type_str(int name_type)