diff options
author | ache <ache@FreeBSD.org> | 2001-11-28 02:17:22 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-11-28 02:17:22 +0000 |
commit | e27de1447ab399e87a8b7045a1b99bc9052326fd (patch) | |
tree | e05be326c2cd9092a4d9a5e7d528b86f6642dc10 /lib/libc/stdlib/strtoul.c | |
parent | 879d96aeb678c23b6fa4dbf84ea7e18eb0b3fa89 (diff) | |
download | FreeBSD-src-e27de1447ab399e87a8b7045a1b99bc9052326fd.zip FreeBSD-src-e27de1447ab399e87a8b7045a1b99bc9052326fd.tar.gz |
Put back base > 35 check. If someone dislike it, plese discuss it with
standards group first.
Diffstat (limited to 'lib/libc/stdlib/strtoul.c')
-rw-r--r-- | lib/libc/stdlib/strtoul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strtoul.c b/lib/libc/stdlib/strtoul.c index e952663..e9046b0 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) + if (base < 2 || base > 35) goto noconv; cutoff = ULONG_MAX / base; |