forked from ariadne/pkgconf
libpkgconf: hopefully the last necessary tweak to quoting...
parent
77ca17b6ff
commit
6e643aa432
|
@ -88,7 +88,9 @@ pkgconf_argv_split(const char *src, int *argc, char ***argv)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!isspace((unsigned int) *src_iter))
|
||||
if (isspace((unsigned int) *src_iter))
|
||||
*dst_iter++ = '\\';
|
||||
|
||||
*dst_iter++ = *src_iter;
|
||||
}
|
||||
|
||||
|
|
|
@ -387,7 +387,7 @@ fragment_escape(const char *src)
|
|||
|
||||
while (*src)
|
||||
{
|
||||
if ((*src < ' ') ||
|
||||
if (((*src < ' ') ||
|
||||
(*src > ' ' && *src < '$') ||
|
||||
(*src > '$' && *src < '(') ||
|
||||
(*src > ')' && *src < '+') ||
|
||||
|
@ -396,7 +396,7 @@ fragment_escape(const char *src)
|
|||
(*src > 'Z' && *src < '^') ||
|
||||
(*src == '`') ||
|
||||
(*src > 'z' && *src < '~') ||
|
||||
(*src > '~'))
|
||||
(*src > '~')) && *src != '\\')
|
||||
*dst++ = '\\';
|
||||
|
||||
*dst++ = *src++;
|
||||
|
|
Loading…
Reference in New Issue