summaryrefslogtreecommitdiff
path: root/games/number/number.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-27 02:43:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-27 02:43:33 +0000
commit1d0650ed30e7f31816d15423520c0c06d55ce6ca (patch)
treeb0277c40a70b0f6a6892368cbb556fe98b6dd1dc /games/number/number.c
parentdf74e0b21263837c8712f32e2cd1666e4806fce9 (diff)
fix a bug; steve@freebsd
Diffstat (limited to 'games/number/number.c')
-rw-r--r--games/number/number.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/games/number/number.c b/games/number/number.c
index d49a00dbbbe..127f216dbb0 100644
--- a/games/number/number.c
+++ b/games/number/number.c
@@ -174,6 +174,7 @@ badnum: errx(1, "illegal number: %s", line);
if (*line == '-') {
(void)printf("minus%s", lflag ? " " : "\n");
++line;
+ --len;
}
rval = len > 0 ? unit(len, line) : 0;