From: Jim Jagielski Date: Tue, 18 Jun 2002 03:13:25 +0000 (+0000) Subject: Document that ap_strtol should only really X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbdc6768e45a60b4d795344ceb48e151dc637c6d;p=thirdparty%2Fapache%2Fhttpd.git Document that ap_strtol should only really be used with bases <19 because of EBCDIC. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95755 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ap/ap_strtol.c b/src/ap/ap_strtol.c index dfa865c4b1f..2a639af603c 100644 --- a/src/ap/ap_strtol.c +++ b/src/ap/ap_strtol.c @@ -106,6 +106,9 @@ * * Assumes that the upper and lower case * alphabets and digits are each contiguous. + * As such, this will break on EBCDIC machines + * if base is >19. The highest we use is 16 + * so we're OK, but you are warned! */ API_EXPORT(long) ap_strtol(const char *nptr, char **endptr, int base)