summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/print-atalk.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-06 03:11:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-06 03:11:41 +0000
commitae6af869059184f071b9cf98a62cdfbeb9459b25 (patch)
tree08478b1b2ac68b8a23edcda7dca0343cb6b40366 /usr.sbin/tcpdump/print-atalk.c
parent95ad5e3fd5480be62b7baba07cf74ec1fb46ba7e (diff)
a bit of snprintf cleaning
Diffstat (limited to 'usr.sbin/tcpdump/print-atalk.c')
-rw-r--r--usr.sbin/tcpdump/print-atalk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-atalk.c b/usr.sbin/tcpdump/print-atalk.c
index 7ea8fa68554..f8e545c1821 100644
--- a/usr.sbin/tcpdump/print-atalk.c
+++ b/usr.sbin/tcpdump/print-atalk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-atalk.c,v 1.17 2001/10/30 12:30:04 ho Exp $ */
+/* $OpenBSD: print-atalk.c,v 1.18 2001/11/06 03:11:40 deraadt Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -25,7 +25,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-atalk.c,v 1.17 2001/10/30 12:30:04 ho Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-atalk.c,v 1.18 2001/11/06 03:11:40 deraadt Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -640,7 +640,7 @@ ddpskt_string(register int skt)
static char buf[10];
if (nflag) {
- (void)sprintf(buf, "%d", skt);
+ (void)snprintf(buf, sizeof buf, "%d", skt);
return (buf);
}
return (tok2str(skt2str, "%d", skt));