From 6814f3fb912279eed9dad628244664ccbeba1309 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 17 Jul 2010 10:51:03 +0000 Subject: 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. --- progress.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/progress.c b/progress.c index 826d240..893e89c 100644 --- a/progress.c +++ b/progress.c @@ -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 #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 @@ -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++; -- cgit v1.2.3-56-ge451