Skip to content

Commit cc3e3de

Browse files
authored
Make args replace ... only at the end of file (#909)
So that the string '...' can be used verbatim elsewhere in the file.
1 parent ac125d3 commit cc3e3de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/args/args.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int LoadZipArgsImpl(int *argc, char ***argv, char *data) {
8181
founddots = false;
8282
AddZipArg(&n, &args, (*argv)[0]);
8383
while ((arg = strtok_r(start, "\r\n", &state))) {
84-
if (!strcmp(arg, "...")) {
84+
if (!strcmp(arg, "...") && !state) {
8585
founddots = true;
8686
for (i = 1; i < *argc; ++i) {
8787
AddZipArg(&n, &args, (*argv)[i]);

0 commit comments

Comments
 (0)