summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-03-23 02:17:39 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-03-23 02:17:39 +0000
commit3d88e32cdf17782b0ecf60c38cba19b613d980b6 (patch)
tree517f7a12bdd171842a4c59b56d658de2dad76959 /usr.bin
parent7c11109839a03fe603af57f4eefbc2e45dfd9d18 (diff)
int variables can only hold up to INT_MAX, not UINT_MAX.
``Go ahead'' deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/vgrind/vfontedpr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/vgrind/vfontedpr.c b/usr.bin/vgrind/vfontedpr.c
index e78ebe949ea..fb8ff10a531 100644
--- a/usr.bin/vgrind/vfontedpr.c
+++ b/usr.bin/vgrind/vfontedpr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfontedpr.c,v 1.10 2006/03/22 19:38:45 deraadt Exp $ */
+/* $OpenBSD: vfontedpr.c,v 1.11 2006/03/23 02:17:38 ray Exp $ */
/* $NetBSD: vfontedpr.c,v 1.7 1998/12/19 23:41:53 christos Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)vfontedpr.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: vfontedpr.c,v 1.10 2006/03/22 19:38:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: vfontedpr.c,v 1.11 2006/03/23 02:17:38 ray Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -188,7 +188,7 @@ main(int argc, char *argv[])
if (!strncmp(argv[0], "-s", 2)) {
const char *errstr;
- i = (int)strtonum(argv[0] + 2, 0, UINT_MAX, &errstr);
+ i = (int)strtonum(argv[0] + 2, 0, INT_MAX, &errstr);
if (errstr)
perror(argv[0]);
printf("'ps %d\n'vs %d\n", i, i+1);