diff options
author | 2000-04-30 05:23:28 +0000 | |
---|---|---|
committer | 2000-04-30 05:23:28 +0000 | |
commit | 42c92d5223810043ab2d7751916b25121f2c4fcb (patch) | |
tree | c35dc8e74cd337bc5b87f6b8cff3a0f1f5acfad6 /usr.sbin/tcpdump/tcpdump.c | |
parent | #ifdef vax -> #ifdef __vax__ (diff) | |
download | wireguard-openbsd-42c92d5223810043ab2d7751916b25121f2c4fcb.tar.xz wireguard-openbsd-42c92d5223810043ab2d7751916b25121f2c4fcb.zip |
be more careful with strcpy/sprintf. From tcpdump.org. millert@ ok
Diffstat (limited to 'usr.sbin/tcpdump/tcpdump.c')
-rw-r--r-- | usr.sbin/tcpdump/tcpdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c index 7efddb2aaaf..20dab7e793a 100644 --- a/usr.sbin/tcpdump/tcpdump.c +++ b/usr.sbin/tcpdump/tcpdump.c @@ -24,7 +24,7 @@ static const char copyright[] = "@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997\n\ The Regents of the University of California. All rights reserved.\n"; static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.17 2000/04/26 21:35:44 jakob Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.18 2000/04/30 05:23:28 ericj Exp $ (LBL)"; #endif /* @@ -151,7 +151,7 @@ main(int argc, char **argv) else program_name = argv[0]; - if (abort_on_misalignment(ebuf) < 0) + if (abort_on_misalignment(ebuf, sizeof(ebuf)) < 0) error("%s", ebuf); opterr = 0; |