diff options
Diffstat (limited to 'src/lib/libc/stdlib/strtol.c')
-rw-r--r-- | src/lib/libc/stdlib/strtol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/strtol.c b/src/lib/libc/stdlib/strtol.c index 021fdc0d2a..6ca9e553b2 100644 --- a/src/lib/libc/stdlib/strtol.c +++ b/src/lib/libc/stdlib/strtol.c | |||
@@ -33,7 +33,7 @@ | |||
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | /*static char *sccsid = "from: @(#)strtol.c 5.4 (Berkeley) 2/23/91";*/ | 35 | /*static char *sccsid = "from: @(#)strtol.c 5.4 (Berkeley) 2/23/91";*/ |
36 | static char *rcsid = "$Id: strtol.c,v 1.2 1995/12/21 14:58:36 deraadt Exp $"; | 36 | static char *rcsid = "$Id: strtol.c,v 1.3 1996/07/27 10:45:24 deraadt Exp $"; |
37 | #endif /* LIBC_SCCS and not lint */ | 37 | #endif /* LIBC_SCCS and not lint */ |
38 | 38 | ||
39 | #include <ctype.h> | 39 | #include <ctype.h> |
@@ -66,7 +66,7 @@ strtol(nptr, endptr, base) | |||
66 | */ | 66 | */ |
67 | s = nptr; | 67 | s = nptr; |
68 | do { | 68 | do { |
69 | c = *s++; | 69 | c = (unsigned char) *s++; |
70 | } while (isspace(c)); | 70 | } while (isspace(c)); |
71 | if (c == '-') { | 71 | if (c == '-') { |
72 | neg = 1; | 72 | neg = 1; |
@@ -112,7 +112,7 @@ strtol(nptr, endptr, base) | |||
112 | } | 112 | } |
113 | cutlim = -cutlim; | 113 | cutlim = -cutlim; |
114 | } | 114 | } |
115 | for (acc = 0, any = 0;; c = *s++) { | 115 | for (acc = 0, any = 0;; c = (unsigned char) *s++) { |
116 | if (isdigit(c)) | 116 | if (isdigit(c)) |
117 | c -= '0'; | 117 | c -= '0'; |
118 | else if (isalpha(c)) | 118 | else if (isalpha(c)) |