summaryrefslogtreecommitdiffstats
path: root/usr.sbin/arp/arp.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-05-14 21:16:35 +0000
committerderaadt <deraadt@openbsd.org>1998-05-14 21:16:35 +0000
commitd2c3e3006f903624f8c7883429ec355ecdf5f7a2 (patch)
tree4da552a10c90222eec05d4118a29fe9ae5d9ad9c /usr.sbin/arp/arp.c
parentchange debug poke colors (diff)
downloadwireguard-openbsd-d2c3e3006f903624f8c7883429ec355ecdf5f7a2.tar.xz
wireguard-openbsd-d2c3e3006f903624f8c7883429ec355ecdf5f7a2.zip
more careful scanf
Diffstat (limited to 'usr.sbin/arp/arp.c')
-rw-r--r--usr.sbin/arp/arp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index 527f6b7b52a..70d9306151d 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arp.c,v 1.11 1998/05/11 01:34:50 deraadt Exp $ */
+/* $OpenBSD: arp.c,v 1.12 1998/05/14 21:16:42 deraadt Exp $ */
/* $NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $ */
/*
@@ -155,7 +155,7 @@ file(name)
args[4] = &arg[4][0];
retval = 0;
while (fgets(line, 100, fp) != NULL) {
- i = sscanf(line, "%50s %50s %50s %50s %50s", arg[0], arg[1], arg[2],
+ i = sscanf(line, "%49s %49s %49s %49s %49s", arg[0], arg[1], arg[2],
arg[3], arg[4]);
if (i < 2) {
warnx("bad line: %s", line);