aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordbj <dbj@NetBSD.org>2004-01-17 23:02:51 +0000
committerdbj <dbj@NetBSD.org>2004-01-17 23:02:51 +0000
commit2231f3683e89884accdd4748079ecd2438691a0b (patch)
treed6d9501ed6fc2dc500e1f42d9697f4db7c8a5a65
parentc96713c3f9606de88abbc83b0a87d28c690e5a18 (diff)
downloadbsd-progress-2231f3683e89884accdd4748079ecd2438691a0b.tar.gz
bsd-progress-2231f3683e89884accdd4748079ecd2438691a0b.tar.zst
bsd-progress-2231f3683e89884accdd4748079ecd2438691a0b.zip
print max rather than min in error message when number
parsed by strsuftollx is greater than max
-rw-r--r--strsuftoll.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/strsuftoll.c b/strsuftoll.c
index 867223e..d52ff53 100644
--- a/strsuftoll.c
+++ b/strsuftoll.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strsuftoll.c,v 1.4 2003/10/27 00:12:42 lukem Exp $ */
+/* $NetBSD: strsuftoll.c,v 1.5 2004/01/17 23:02:51 dbj Exp $ */
/*-
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -74,7 +74,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strsuftoll.c,v 1.4 2003/10/27 00:12:42 lukem Exp $");
+__RCSID("$NetBSD: strsuftoll.c,v 1.5 2004/01/17 23:02:51 dbj Exp $");
#endif /* LIBC_SCCS and not lint */
#ifdef _LIBC
@@ -235,7 +235,7 @@ strsuftollx(const char *desc, const char *val,
/* LONGLONG */
snprintf(ebuf, ebuflen,
"%s %lld is greater than %lld.",
- desc, (long long)num, (long long)min);
+ desc, (long long)num, (long long)max);
return (0);
}
*ebuf = '\0';