httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: I WANT A GA release
Date Fri, 05 Apr 2002 19:25:45 GMT
Jim Jagielski wrote:
> 
> Try this:
> -        cp++;
> +        if (*cp != '\0') {
> +            cp++;
> +        }
>          (*argv_out)[numargs] = apr_palloc(token_context, cp - ct);
>          apr_cpystrn((*argv_out)[numargs], ct, cp - ct);

Hold on... on the last arg we're not allocating and copying enough...
We could cp++ as we are and then peek at cp[-1]...
-- 
===========================================================================
   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