forked from ariadne/pkgconf
libpkgconf: argvsplit: make escape handling more explicit
parent
5db87c9685
commit
67796a1d86
|
@ -124,9 +124,14 @@ pkgconf_argv_split(const char *src, int *argc, char ***argv)
|
|||
free(argv);
|
||||
free(buf);
|
||||
return -1;
|
||||
} else {
|
||||
*dst_iter++ = '\\';
|
||||
}
|
||||
else
|
||||
{
|
||||
*dst_iter++ = '\\';
|
||||
*dst_iter++ = *src_iter;
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
*dst_iter++ = *src_iter;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue