From 598b0256a354cb2e65ea240e50662d4378f5462c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 14 Oct 2017 00:05:03 +0300 Subject: Merge with latest original package version (master branch) --- libpkgconf/argvsplit.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libpkgconf/argvsplit.c') 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; } -- cgit v1.1