"-b 1024k" would previously fail with this error message:
progress: buffer size
1048576 is greater than -1.
-/* $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.
#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>
switch (ch) {
case 'b':
buffersize = (size_t) strsuftoll("buffer size", optarg,
- 0, SIZE_T_MAX);
+ 0, SSIZE_MAX);
break;
case 'e':
eflag++;