diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-14 00:14:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-14 00:14:06 +0000 |
commit | 72af685d8aa0b209634a3567f06d3514e6e6fac6 (patch) | |
tree | 33f0524402e6f8d7b65bf163ce975e2c20615a30 /lib/libpcap/pcap.c | |
parent | 8966093c128ff116f0b986a0e7921ef73d29d3ad (diff) |
buf oflows
Diffstat (limited to 'lib/libpcap/pcap.c')
-rw-r--r-- | lib/libpcap/pcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpcap/pcap.c b/lib/libpcap/pcap.c index ee14262af6d..05eb2ee4861 100644 --- a/lib/libpcap/pcap.c +++ b/lib/libpcap/pcap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcap.c,v 1.4 1996/07/12 13:19:12 mickey Exp $ */ +/* $OpenBSD: pcap.c,v 1.5 1998/07/14 00:14:04 deraadt Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 @@ -174,7 +174,7 @@ pcap_strerror(int errnum) if ((unsigned int)errnum < sys_nerr) return ((char *)sys_errlist[errnum]); - (void)sprintf(ebuf, "Unknown error: %d", errnum); + (void)snprintf(ebuf, sizeof ebuf, "Unknown error: %d", errnum); return(ebuf); #endif } |