libpkgconf: argvsplit: handle double backslash case properly (closes #140)
parent
abe0f5c821
commit
fae657101c
|
@ -89,7 +89,7 @@ pkgconf_argv_split(const char *src, int *argc, char ***argv)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (isspace((unsigned int) *src_iter))
|
if (isspace((unsigned int) *src_iter) || *src_iter == '\\')
|
||||||
*dst_iter++ = '\\';
|
*dst_iter++ = '\\';
|
||||||
|
|
||||||
*dst_iter++ = *src_iter;
|
*dst_iter++ = *src_iter;
|
||||||
|
|
Loading…
Reference in New Issue