summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/strtol.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1998-05-20 00:07:18 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1998-05-20 00:07:18 +0000
commit6a38ff80b4085e5a9a7e8839436bb0df16ef5bbf (patch)
tree41dd2e228de41005ea4aecc69d8f1d22cf8a84cd /sys/lib/libsa/strtol.c
parent64b628ac65619281e9953e5b9dbd0060c6e80bf9 (diff)
fix strtol on one character long numbers
Diffstat (limited to 'sys/lib/libsa/strtol.c')
-rw-r--r--sys/lib/libsa/strtol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/strtol.c b/sys/lib/libsa/strtol.c
index 7915349f4e0..a8558a938c8 100644
--- a/sys/lib/libsa/strtol.c
+++ b/sys/lib/libsa/strtol.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strtol.c,v 1.2 1998/02/24 22:12:27 weingart Exp $ */
+/* $OpenBSD: strtol.c,v 1.3 1998/05/20 00:07:17 art Exp $ */
/* Modified strtol() from stdlib */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -60,7 +60,7 @@ strtol(nptr, endptr, base)
s = nptr;
do {
c = (unsigned char) *s++;
- } while (*s <= ' ' || *s >= 0x7f);
+ } while (c <= ' ' || c >= 0x7f);
if (c == '-') {
neg = 1;
c = *s++;