diff options
author | tron <tron@NetBSD.org> | 2010-07-17 10:51:03 +0000 |
---|---|---|
committer | tron <tron@NetBSD.org> | 2010-07-17 10:51:03 +0000 |
commit | 6814f3fb912279eed9dad628244664ccbeba1309 (patch) | |
tree | f0e3db6fb413c551f17bdeca3a7a9c1d21306165 | |
parent | fa5f97966d65a882be4d6bb59b7ca60f3dbedc7a (diff) | |
download | bsd-progress-6814f3fb912279eed9dad628244664ccbeba1309.tar.gz bsd-progress-6814f3fb912279eed9dad628244664ccbeba1309.tar.zst bsd-progress-6814f3fb912279eed9dad628244664ccbeba1309.zip |
Fix argument handling of the "-b" option on 64bit platforms. Using
"-b 1024k" would previously fail with this error message:
progress: buffer size 1048576 is greater than -1.
-rw-r--r-- | progress.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $NetBSD: progress.c,v 1.17 2008/05/26 04:53:11 dholland Exp $ */ +/* $NetBSD: progress.c,v 1.18 2010/07/17 10:51:03 tron Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: progress.c,v 1.17 2008/05/26 04:53:11 dholland Exp $"); +__RCSID("$NetBSD: progress.c,v 1.18 2010/07/17 10:51:03 tron Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -112,7 +112,7 @@ main(int argc, char *argv[]) switch (ch) { case 'b': buffersize = (size_t) strsuftoll("buffer size", optarg, - 0, SIZE_T_MAX); + 0, SSIZE_MAX); break; case 'e': eflag++; |