libpkgconf: argvsplit: make escape handling more explicit

feature/tap-sh
William Pitcock 2017-01-22 23:04:01 -06:00
parent 5db87c9685
commit 67796a1d86
1 changed files with 7 additions and 2 deletions

View File

@ -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;