Try this: --- apr_cpystrn.c.bak Fri Apr 5 14:17:32 2002 +++ apr_cpystrn.c Fri Apr 5 14:19:23 2002 @@ -171,7 +171,9 @@ while (*ct != '\0') { CHECK_QUOTATION(ct, isquoted); DETERMINE_NEXTSTRING(ct, isquoted); - ct++; + if (*ct != '\0') { + ct++; + } numargs++; SKIP_WHITESPACE(ct); } @@ -183,7 +185,9 @@ CHECK_QUOTATION(cp, isquoted); ct = cp; DETERMINE_NEXTSTRING(cp, isquoted); - cp++; + if (*cp != '\0') { + cp++; + } (*argv_out)[numargs] = apr_palloc(token_context, cp - ct); apr_cpystrn((*argv_out)[numargs], ct, cp - ct); numargs++;
-- =========================================================================== 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