From cc3e3de04496f043fe32736bca7267f568200acc Mon Sep 17 00:00:00 2001 From: mataha Date: Wed, 8 Nov 2023 19:00:52 +0100 Subject: [PATCH] Make `args` replace `...` only at the end of file (#909) So that the string '...' can be used verbatim elsewhere in the file. --- tool/args/args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/args/args.c b/tool/args/args.c index 5d9db1b811b..dfc439dcfeb 100644 --- a/tool/args/args.c +++ b/tool/args/args.c @@ -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]);