summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/addrtoname.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-12-13 05:37:26 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-12-13 05:37:26 +0000
commit412c0c96955cbe33e93e89b20bcacc14842fe4fa (patch)
treed6e0510086a389a4ccad61624a7349f6b124b513 /usr.sbin/tcpdump/addrtoname.c
parent6414649aab02efd6444fb6d332d828658cfe9ef2 (diff)
permit protocol name longer than 3 letters. canacar ok
Diffstat (limited to 'usr.sbin/tcpdump/addrtoname.c')
-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 31e85175839..4083dd983a1 100644
--- a/usr.sbin/tcpdump/addrtoname.c
+++ b/usr.sbin/tcpdump/addrtoname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: addrtoname.c,v 1.24 2004/02/13 17:56:29 canacar Exp $ */
+/* $OpenBSD: addrtoname.c,v 1.25 2004/12/13 05:37:25 itojun 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.24 2004/02/13 17:56:29 canacar Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/addrtoname.c,v 1.25 2004/12/13 05:37:25 itojun Exp $ (LBL)";
#endif
#include <sys/types.h>
@@ -665,7 +665,7 @@ init_servarray(void)
int i, port;
char buf[sizeof("0000000000")];
char service[BUFSIZ];
- char protocol[sizeof("tcp")];
+ char protocol[BUFSIZ];
priv_getserventries();
while (priv_getserventry(service, sizeof(service), &port, protocol,