Module Name: src
Committed By: tron
Date: Sat Jul 17 10:51:04 UTC 2010
Modified Files:
src/usr.bin/progress: progress.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/progress/progress.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/progress/progress.c
diff -u src/usr.bin/progress/progress.c:1.17 src/usr.bin/progress/progress.c:1.18
--- src/usr.bin/progress/progress.c:1.17 Mon May 26 04:53:11 2008
+++ src/usr.bin/progress/progress.c Sat Jul 17 10:51:03 2010
@@ -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 @@
switch (ch) {
case 'b':
buffersize = (size_t) strsuftoll("buffer size", optarg,
- 0, SIZE_T_MAX);
+ 0, SSIZE_MAX);
break;
case 'e':
eflag++;