diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-11 01:34:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-11 01:34:51 +0000 |
commit | 889e30fe6e2275b9b20bbd6e598285ccf2df11a9 (patch) | |
tree | 126a5f80ca2070d981d03364268c9fadf606a89a /usr.sbin | |
parent | 5951ac7971d92adb5a30e6af2117a27f44b19ea7 (diff) |
set max field width of %s correctly
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/arp/arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index fb7ff267997..527f6b7b52a 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arp.c,v 1.10 1997/11/28 05:34:41 art Exp $ */ +/* $OpenBSD: arp.c,v 1.11 1998/05/11 01:34:50 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, "%s %s %s %s %s", arg[0], arg[1], arg[2], + i = sscanf(line, "%50s %50s %50s %50s %50s", arg[0], arg[1], arg[2], arg[3], arg[4]); if (i < 2) { warnx("bad line: %s", line); |