diff options
-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; } |