diff options
author | 2003-09-26 15:51:43 +0000 | |
---|---|---|
committer | 2003-09-26 15:51:43 +0000 | |
commit | cf67bc20078eb490deb64207f132453f3031f5a0 (patch) | |
tree | d039118d9036271b5d08ee30aee9880f1ef96c0a | |
parent | Move statistics counters from individual pf_test_<proto>() and (diff) | |
download | wireguard-openbsd-cf67bc20078eb490deb64207f132453f3031f5a0.tar.xz wireguard-openbsd-cf67bc20078eb490deb64207f132453f3031f5a0.zip |
add bounds to sscanf, millert@
-rw-r--r-- | usr.sbin/ndp/ndp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index 07c56bc49e2..2f8f7c25be3 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ndp.c,v 1.29 2003/06/26 21:33:33 deraadt Exp $ */ +/* $OpenBSD: ndp.c,v 1.30 2003/09/26 15:51:43 avsm Exp $ */ /* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */ /* @@ -330,7 +330,7 @@ file(char *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, "%49s %49s %49s %49s %49s", arg[0], arg[1], arg[2], arg[3], arg[4]); if (i < 2) { fprintf(stderr, "ndp: bad line: %s\n", line); |