summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-snmp.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2005-04-11 07:40:10 +0000
committerderaadt <deraadt@openbsd.org>2005-04-11 07:40:10 +0000
commit5c5e211ba17d0a40a3ebe3b78b1f27f006d25e1c (patch)
tree704d8dfcb14dc4f070cf1df77f52db98cecab927 /usr.sbin/tcpdump/print-snmp.c
parenttypo in filename; from rick barter; (diff)
downloadwireguard-openbsd-5c5e211ba17d0a40a3ebe3b78b1f27f006d25e1c.tar.xz
wireguard-openbsd-5c5e211ba17d0a40a3ebe3b78b1f27f006d25e1c.zip
tcpdump developers are uncautious retards, plain and simple; ok otto
Diffstat (limited to 'usr.sbin/tcpdump/print-snmp.c')
-rw-r--r--usr.sbin/tcpdump/print-snmp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/print-snmp.c b/usr.sbin/tcpdump/print-snmp.c
index ef57cb6efdf..92d25e1dc74 100644
--- a/usr.sbin/tcpdump/print-snmp.c
+++ b/usr.sbin/tcpdump/print-snmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-snmp.c,v 1.11 2004/03/19 04:55:03 aaron Exp $ */
+/* $OpenBSD: print-snmp.c,v 1.12 2005/04/11 07:40:10 deraadt Exp $ */
/*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
@@ -57,7 +57,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-snmp.c,v 1.11 2004/03/19 04:55:03 aaron Exp $ (LBL)";
+ "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-snmp.c,v 1.12 2005/04/11 07:40:10 deraadt Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -837,11 +837,11 @@ snmppdu_print(u_char pduid, const u_char *np, u_int length)
error = 0;
if ((pduid == GETREQ || pduid == GETNEXTREQ)
&& elem.data.integer != 0) {
- char errbuf[10];
+ char errbuf[20];
printf("[errorStatus(%s)!=0]",
DECODE_ErrorStatus(elem.data.integer));
} else if (elem.data.integer != 0) {
- char errbuf[10];
+ char errbuf[20];
printf(" %s", DECODE_ErrorStatus(elem.data.integer));
error = elem.data.integer;
}
@@ -925,7 +925,7 @@ trap_print(const u_char *np, u_int length)
}
generic = elem.data.integer;
{
- char buf[10];
+ char buf[20];
printf(" %s", DECODE_GenericTrap(generic));
}
length -= count;