diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-11-15 22:12:01 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-11-15 22:12:01 +0000 |
commit | 786e141ff434f3561901f865d397cd26e67fc8c1 (patch) | |
tree | 6ef8c9f53c94cac8c7d637892fa64bd15cc56c28 | |
parent | a62164d5a7e7730b7d5c7df4c593672d7b449b81 (diff) |
I'm a moron...
Bug found by dugsong@. I can't believe it wasn't found before.
-rw-r--r-- | usr.bin/m4/expr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/m4/expr.c b/usr.bin/m4/expr.c index d2e3fce9827..4f4d7ddef20 100644 --- a/usr.bin/m4/expr.c +++ b/usr.bin/m4/expr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: expr.c,v 1.8 1999/09/16 20:19:34 espie Exp $ */ +/* $OpenBSD: expr.c,v 1.9 1999/11/15 22:12:00 espie Exp $ */ /* $NetBSD: expr.c,v 1.7 1995/09/28 05:37:31 tls Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)expr.c 8.2 (Berkeley) 4/29/95"; #else -static char rcsid[] = "$OpenBSD: expr.c,v 1.8 1999/09/16 20:19:34 espie Exp $"; +static char rcsid[] = "$OpenBSD: expr.c,v 1.9 1999/11/15 22:12:00 espie Exp $"; #endif #endif /* not lint */ @@ -516,7 +516,7 @@ num() for(;;) { switch(c) { case '8': case '9': - if (base != OCTAL) + if (base == OCTAL) goto bad_digit; /*FALLTHRU*/ case '0': case '1': case '2': case '3': |