diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-11 07:40:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-11 07:40:11 +0000 |
commit | 8c3ed794656cf4d237884ed0858e578810227e89 (patch) | |
tree | f13644d02d04fe6923766d921f4ef812c433270b | |
parent | 778fdcbc2e8b122d3add960be8a2c5bfe6f9faf3 (diff) |
tcpdump developers are uncautious retards, plain and simple; ok otto
-rw-r--r-- | usr.sbin/tcpdump/print-snmp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/print-snmp.c b/usr.sbin/tcpdump/print-snmp.c index 4a43b3333ad..03a98a47296 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: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-snmp.c,v 1.11 2004/03/19 04:55:03 aaron Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/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; |