summaryrefslogtreecommitdiff
path: root/games/number
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-11-05 22:53:06 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-11-05 22:53:06 +0000
commit8221eafe7c940ce73a70b3b57c348014582b2bff (patch)
tree1c896a21f75eff7e59a1e17c5c422166a12ed2fe /games/number
parentaa16da3ae0fba78d9cd5cf06d5e614c9ee659d48 (diff)
- correct misplaced parenthesis
- better error message from pjanzen@
Diffstat (limited to 'games/number')
-rw-r--r--games/number/number.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/games/number/number.c b/games/number/number.c
index be668e5cb7c..0a3177f4cbd 100644
--- a/games/number/number.c
+++ b/games/number/number.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: number.c,v 1.11 2004/07/10 07:26:23 deraadt Exp $ */
+/* $OpenBSD: number.c,v 1.12 2005/11/05 22:53:05 jmc Exp $ */
/*
* Copyright (c) 1988, 1993, 1994
@@ -39,7 +39,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)number.c 8.3 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: number.c,v 1.11 2004/07/10 07:26:23 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: number.c,v 1.12 2005/11/05 22:53:05 jmc Exp $";
#endif
#endif /* not lint */
@@ -170,8 +170,8 @@ badnum: errx(1, "illegal number: %s", line);
*p = '\0';
if ((len = strlen(line)) > MAXNUM ||
- ((fraction != NULL) && (flen = strlen(fraction))) > MAXNUM)
- errx(1, "number too large (max %d digits).", MAXNUM);
+ ((fraction != NULL) && (flen = strlen(fraction)) > MAXNUM))
+ errx(1, "number too long (max %d digits).", MAXNUM);
if (*line == '-') {
(void)printf("minus%s", lflag ? " " : "\n");