mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-04-29 02:04:43 +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;
|
founddots = false;
|
||||||
AddZipArg(&n, &args, (*argv)[0]);
|
AddZipArg(&n, &args, (*argv)[0]);
|
||||||
while ((arg = strtok_r(start, "\r\n", &state))) {
|
while ((arg = strtok_r(start, "\r\n", &state))) {
|
||||||
if (!strcmp(arg, "...")) {
|
if (!strcmp(arg, "...") && !state) {
|
||||||
founddots = true;
|
founddots = true;
|
||||||
for (i = 1; i < *argc; ++i) {
|
for (i = 1; i < *argc; ++i) {
|
||||||
AddZipArg(&n, &args, (*argv)[i]);
|
AddZipArg(&n, &args, (*argv)[i]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue