Make args replace ... only at the end of file

So that the string '...' can be used verbatim elsewhere in the file.
This commit is contained in:
Mateusz Kazimierczuk 2023-10-09 17:34:32 +02:00
parent 820c3599ed
commit 45d316020c

View file

@ -66,7 +66,7 @@ int LoadZipArgsImpl(int *argc, char ***argv, char *data) {
founddots = false;
AddZipArg(&n, &args, (*argv)[0]);
while ((arg = strtok_r(start, "\r\n", &state))) {
if (!strcmp(arg, "...")) {
if (!strcmp(arg, "...") && !state) {
founddots = true;
for (i = 1; i < *argc; ++i) {
AddZipArg(&n, &args, (*argv)[i]);