Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/lib/libpcap Pull up revision 1.6 (requested by itojun):
details: https://anonhg.NetBSD.org/src/rev/cfef81b409bb
branches: netbsd-1-4
changeset: 470523:cfef81b409bb
user: he <he%NetBSD.org@localhost>
date: Sun Apr 30 11:39:32 2000 +0000
description:
Pull up revision 1.6 (requested by itojun):
Use snprintf, not sprintf. This synchronizes with a more recent
LBL libpcap.
diffstat:
lib/libpcap/savefile.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 11867c95e936 -r cfef81b409bb lib/libpcap/savefile.c
--- a/lib/libpcap/savefile.c Sun Apr 30 11:39:07 2000 +0000
+++ b/lib/libpcap/savefile.c Sun Apr 30 11:39:32 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: savefile.c,v 1.5 1997/10/03 15:53:17 christos Exp $ */
+/* $NetBSD: savefile.c,v 1.5.4.1 2000/04/30 11:39:32 he Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996
@@ -36,7 +36,7 @@
static const char rcsid[] =
"@(#) Header: savefile.c,v 1.36 96/12/10 23:15:02 leres Exp (LBL)";
#else
-__RCSID("$NetBSD: savefile.c,v 1.5 1997/10/03 15:53:17 christos Exp $");
+__RCSID("$NetBSD: savefile.c,v 1.5.4.1 2000/04/30 11:39:32 he Exp $");
#endif
#endif
@@ -243,7 +243,8 @@
static int tsize = 0;
if (hdr->caplen > 65535) {
- sprintf(p->errbuf, "bogus savefile header");
+ snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
+ "bogus savefile header");
return (-1);
}
if (tsize < hdr->caplen) {
Home |
Main Index |
Thread Index |
Old Index