diff options
author | Bojan Smojver <bojan@apache.org> | 2008-11-10 08:42:32 +0000 |
---|---|---|
committer | Bojan Smojver <bojan@apache.org> | 2008-11-10 08:42:32 +0000 |
commit | d8f9c87266963ce8ac40b9c6abc629ba18fafe09 (patch) | |
tree | 2cec3d1dde49737c0f950b29ff51d383938947a1 /strings | |
parent | ac3fe8412e0b64f1754569ee16afafa79576c3fd (diff) | |
download | apr-d8f9c87266963ce8ac40b9c6abc629ba18fafe09.tar.gz |
Fix apr_tokenize_to_argv parsing.
PR 46128.
Patch by Edward Rudd <eddie omegaware.com>
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@712627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings')
-rw-r--r-- | strings/apr_cpystrn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/strings/apr_cpystrn.c b/strings/apr_cpystrn.c index 888b2e5db..6311c29f3 100644 --- a/strings/apr_cpystrn.c +++ b/strings/apr_cpystrn.c @@ -114,8 +114,7 @@ APR_DECLARE(apr_status_t) apr_tokenize_to_argv(const char *arg_str, */ #define DETERMINE_NEXTSTRING(cp,isquoted) \ for ( ; *cp != '\0'; cp++) { \ - if ( (isquoted && (*cp == ' ' || *cp == '\t')) \ - || (*cp == '\\' && (*(cp+1) == ' ' || *(cp+1) == '\t' || \ + if ( (*cp == '\\' && (*(cp+1) == ' ' || *(cp+1) == '\t' || \ *(cp+1) == '"' || *(cp+1) == '\''))) { \ cp++; \ continue; \ |