From 412c0c96955cbe33e93e89b20bcacc14842fe4fa Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Mon, 13 Dec 2004 05:37:26 +0000 Subject: permit protocol name longer than 3 letters. canacar ok --- usr.sbin/tcpdump/addrtoname.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/tcpdump/addrtoname.c') 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 @@ -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, -- cgit v1.2.3