Skip to content

Commit

Permalink
Make args replace ... only at the end of file (#909)
Browse files Browse the repository at this point in the history
So that the string '...' can be used verbatim elsewhere in the file.
  • Loading branch information
mataha authored Nov 8, 2023
1 parent ac125d3 commit cc3e3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/args/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit cc3e3de

Please sign in to comment.