summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2001-11-28 02:35:35 +0000
committerfenner <fenner@FreeBSD.org>2001-11-28 02:35:35 +0000
commitb43213c53369955060bcc603a54c0ba11964f27a (patch)
tree0c7a61aae60dbcd9544627c659a8ce53a2c5cc58 /lib/libc
parent44efd0a115990f8a984236b52c9d38d5844d60b0 (diff)
downloadFreeBSD-src-b43213c53369955060bcc603a54c0ba11964f27a.zip
FreeBSD-src-b43213c53369955060bcc603a54c0ba11964f27a.tar.gz
Base 36 is allowed.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/strtol.c2
-rw-r--r--lib/libc/stdlib/strtoll.c2
-rw-r--r--lib/libc/stdlib/strtoul.c2
-rw-r--r--lib/libc/stdlib/strtoull.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdlib/strtol.c b/lib/libc/stdlib/strtol.c
index 0772894..3d19693 100644
--- a/lib/libc/stdlib/strtol.c
+++ b/lib/libc/stdlib/strtol.c
@@ -87,7 +87,7 @@ strtol(nptr, endptr, base)
if (base == 0)
base = c == '0' ? 8 : 10;
acc = any = 0;
- if (base < 2 || base > 35)
+ if (base < 2 || base > 36)
goto noconv;
/*
diff --git a/lib/libc/stdlib/strtoll.c b/lib/libc/stdlib/strtoll.c
index 2992ec8..1fd7d9c 100644
--- a/lib/libc/stdlib/strtoll.c
+++ b/lib/libc/stdlib/strtoll.c
@@ -86,7 +86,7 @@ strtoll(nptr, endptr, base)
if (base == 0)
base = c == '0' ? 8 : 10;
acc = any = 0;
- if (base < 2 || base > 35)
+ if (base < 2 || base > 36)
goto noconv;
/*
diff --git a/lib/libc/stdlib/strtoul.c b/lib/libc/stdlib/strtoul.c
index e9046b0..e431dc8 100644
--- a/lib/libc/stdlib/strtoul.c
+++ b/lib/libc/stdlib/strtoul.c
@@ -84,7 +84,7 @@ strtoul(nptr, endptr, base)
if (base == 0)
base = c == '0' ? 8 : 10;
acc = any = 0;
- if (base < 2 || base > 35)
+ if (base < 2 || base > 36)
goto noconv;
cutoff = ULONG_MAX / base;
diff --git a/lib/libc/stdlib/strtoull.c b/lib/libc/stdlib/strtoull.c
index 3e9b400..adb6556 100644
--- a/lib/libc/stdlib/strtoull.c
+++ b/lib/libc/stdlib/strtoull.c
@@ -84,7 +84,7 @@ strtoull(nptr, endptr, base)
if (base == 0)
base = c == '0' ? 8 : 10;
acc = any = 0;
- if (base < 2 || base > 35)
+ if (base < 2 || base > 36)
goto noconv;
cutoff = ULLONG_MAX / base;
OpenPOWER on IntegriCloud