httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: cvs commit: httpd-2.0/modules/http http_protocol.c
Date Mon, 17 Jun 2002 23:53:05 GMT
jwoolley@apache.org wrote:
> 
>                if (*pos == '\0') {
>   +                char *endstr;
>                    ctx->state = BODY_LENGTH;
>   -                ctx->remaining = atol(lenp);
>   +                ctx->remaining = strtol(lenp, &endstr, 10);
>   +
>   +                if (errno == ERANGE) {
>   +                    conversion_error = 1; 
>   +                }
>   +            }
>   +

I don't know if such behavior is universal enough for us to assume
the above.

-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

Mime
View raw message