Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/progress Fix argument handling of the "-b" option on...
details: https://anonhg.NetBSD.org/src/rev/a669d5c90e55
branches: trunk
changeset: 756420:a669d5c90e55
user: tron <tron%NetBSD.org@localhost>
date: Sat Jul 17 10:51:03 2010 +0000
description:
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.
diffstat:
usr.bin/progress/progress.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r bafc2ce0012d -r a669d5c90e55 usr.bin/progress/progress.c
--- a/usr.bin/progress/progress.c Sat Jul 17 06:55:39 2010 +0000
+++ b/usr.bin/progress/progress.c Sat Jul 17 10:51:03 2010 +0000
@@ -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++;
Home |
Main Index |
Thread Index |
Old Index