summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2000-11-23 18:32:21 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2000-11-23 18:32:21 +0000
commit2ad6ff4601683278154901b9f31bc4b6ae136b6c (patch)
tree7b88d04d9b1b65f7b365b589d62a30ac54a43e1d /usr.sbin
parente0aa80fa0ec859f01fefe8ac88a1fd345e98bbf4 (diff)
fix one more s/sprintf/snprintf/; jeremy@hack.org.il
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/tcpdump/addrtoname.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/addrtoname.c b/usr.sbin/tcpdump/addrtoname.c
index 6b693013400..705de9a6176 100644
--- a/usr.sbin/tcpdump/addrtoname.c
+++ b/usr.sbin/tcpdump/addrtoname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: addrtoname.c,v 1.16 2000/10/31 16:06:46 deraadt Exp $ */
+/* $OpenBSD: addrtoname.c,v 1.17 2000/11/23 18:32:20 jakob Exp $ */
/*
* Copyright (c) 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/addrtoname.c,v 1.16 2000/10/31 16:06:46 deraadt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/addrtoname.c,v 1.17 2000/11/23 18:32:20 jakob Exp $ (LBL)";
#endif
#include <sys/types.h>
@@ -673,7 +673,7 @@ udpport_string(register u_short port)
tp->addr = i;
tp->nxt = newhnamemem();
- (void)sprintf(buf, "%u", i);
+ (void)snprintf(buf, sizeof(buf), "%u", i);
tp->name = savestr(buf);
return (tp->name);
}