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   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

Reply via email to