aboutsummaryrefslogtreecommitdiff
path: root/libpkgconf/argvsplit.c
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-10-14 00:05:03 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-10-14 00:05:03 +0300
commit598b0256a354cb2e65ea240e50662d4378f5462c (patch)
treeeebc14a4f618ade0678107c40b16f6538d30aade /libpkgconf/argvsplit.c
parent8a5f879840bfe9933a6ff01792b42000de99f8c2 (diff)
Merge with latest original package version (master branch)
Diffstat (limited to 'libpkgconf/argvsplit.c')
-rw-r--r--libpkgconf/argvsplit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libpkgconf/argvsplit.c b/libpkgconf/argvsplit.c
index fdc4dc9..4e40327 100644
--- a/libpkgconf/argvsplit.c
+++ b/libpkgconf/argvsplit.c
@@ -93,11 +93,14 @@ pkgconf_argv_split(const char *src, int *argc, char ***argv)
* There is no reason to keep space character escaped in fragment
* objects, especially given that other characters are unescaped (issue
* #139 is reported).
+ *
+ * Update: as a part of the issue #140 fix the backslash is now
+ * escaped as well.
*/
/*
- if (isspace((unsigned int) *src_iter))
+ if (isspace((unsigned int) *src_iter) || *src_iter == '\\')
*dst_iter++ = '\\';
- */
+ */
*dst_iter++ = *src_iter;
}