diff options
author | 2009-11-11 17:10:25 +0000 | |
---|---|---|
committer | 2009-11-11 17:10:25 +0000 | |
commit | 417376c7051982ef8b9fb0459e2eea526df8667f (patch) | |
tree | 4f7a62936dd22ccc2ad84da4716810722b37d454 | |
parent | Fix previous. When configured to relay via IP address, MX lookup would fail (diff) | |
download | wireguard-openbsd-417376c7051982ef8b9fb0459e2eea526df8667f.tar.xz wireguard-openbsd-417376c7051982ef8b9fb0459e2eea526df8667f.zip |
do not walk off the prefix array, off by one; found by parfait
ok jsg millert
-rw-r--r-- | usr.bin/ftp/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ftp/util.c b/usr.bin/ftp/util.c index ee272ed1986..4e16e7690bc 100644 --- a/usr.bin/ftp/util.c +++ b/usr.bin/ftp/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.63 2009/05/10 16:31:17 deraadt Exp $ */ +/* $OpenBSD: util.c,v 1.64 2009/11/11 17:10:25 deraadt Exp $ */ /* $NetBSD: util.c,v 1.12 1997/08/18 10:20:27 lukem Exp $ */ /*- @@ -826,7 +826,7 @@ progressmeter(int flag, const char *filename) i = 0; abbrevsize = cursize; - while (abbrevsize >= 100000 && i < sizeof(prefixes)) { + while (abbrevsize >= 100000 && i < sizeof(prefixes)-1) { i++; abbrevsize >>= 10; } |