summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2006-01-26 02:43:29 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2006-01-26 02:43:29 +0000
commitf1601cdcc943ae8845b2162690dbc2bdf0fc7afd (patch)
treec5ba1d524637329c78357fd35c64f73b1e6286d3
parentc87064306ce090adec8b42f29cf7d4d944e29a58 (diff)
Fix character range check in local atoi() function. krw@ "looks correct"
-rw-r--r--sys/arch/alpha/alpha/autoconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/autoconf.c b/sys/arch/alpha/alpha/autoconf.c
index 59ce11c6fdd..30166fdef8d 100644
--- a/sys/arch/alpha/alpha/autoconf.c
+++ b/sys/arch/alpha/alpha/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.26 2005/12/27 18:31:05 miod Exp $ */
+/* $OpenBSD: autoconf.c,v 1.27 2006/01/26 02:43:28 aaron Exp $ */
/* $NetBSD: autoconf.c,v 1.16 1996/11/13 21:13:04 cgd Exp $ */
/*
@@ -589,7 +589,7 @@ atoi(s)
}
while (*s != '\0') {
- if (*s < '0' && *s > '9')
+ if (*s < '0' || *s > '9')
break;
n = (10 * n) + (*s - '0');