mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Make args
replace ...
only at the end of file (#909)
So that the string '...' can be used verbatim elsewhere in the file.
This commit is contained in:
parent
ac125d3e1f
commit
cc3e3de044
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,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…
Reference in a new issue