diff options
-rw-r--r-- | utility/logparse.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/utility/logparse.c b/utility/logparse.c index d172f27..534703d 100644 --- a/utility/logparse.c +++ b/utility/logparse.c | |||
@@ -375,13 +375,8 @@ apr_status_t parser_tokenize_line(const char *arg_str, char ***argv_out, | |||
375 | ct = cp; | 375 | ct = cp; |
376 | DETERMINE_NEXTSTRING(cp, isquoted); | 376 | DETERMINE_NEXTSTRING(cp, isquoted); |
377 | cp++; | 377 | cp++; |
378 | if (isquoted) { | 378 | (*argv_out)[argnum] = apr_palloc(token_context, cp - ct); |
379 | (*argv_out)[argnum] = apr_palloc(token_context, cp - ct + 2); | 379 | apr_cpystrn((*argv_out)[argnum], ct, cp - ct); |
380 | apr_cpystrn((*argv_out)[argnum], ct -1, cp - ct + 2); | ||
381 | } else { | ||
382 | (*argv_out)[argnum] = apr_palloc(token_context, cp - ct); | ||
383 | apr_cpystrn((*argv_out)[argnum], ct, cp - ct); | ||
384 | } | ||
385 | cleaned = dirty = (*argv_out)[argnum]; | 380 | cleaned = dirty = (*argv_out)[argnum]; |
386 | REMOVE_ESCAPE_CHARS(cleaned, dirty, escaped) | 381 | REMOVE_ESCAPE_CHARS(cleaned, dirty, escaped) |
387 | ; | 382 | ; |