mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-09 19:30:29 +00:00
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:
parent
820c3599ed
commit
45d316020c
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue