Fix command line handling in Windows
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled

This commit is contained in:
Andrea Mazzoleni 2025-10-18 16:22:10 +02:00
parent ce2ad1e9c1
commit 1aba628477

View file

@ -184,7 +184,7 @@ int main(int argc, char* argv[])
if (wcscmp(wide_argv[i], L"-s") == 0 || wcscmp(wide_argv[i], L"--spin-down-on-error") == 0) {
mode = MODE_SPINDOWN;
} else {
pos = argcat(cmd_buffer, sizeof(cmd_buffer), 0, wide_argv[i]);
pos = argcat(cmd_buffer, sizeof(cmd_buffer), pos, wide_argv[i]);
if (pos < 0) {
exit(EXIT_FAILURE);
}