From 94ec158750e461806eaa19a10a4a08a3131b8059 Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Mon, 29 Jul 2024 02:26:53 +0300 Subject: [PATCH] stub: fix argv0 len calculus Fixes https://github.com/dosemu2/dosemu2/issues/2246 --- src/djdev64/stub/stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/djdev64/stub/stub.c b/src/djdev64/stub/stub.c index 6bd14e0f..2fe600ff 100644 --- a/src/djdev64/stub/stub.c +++ b/src/djdev64/stub/stub.c @@ -259,7 +259,7 @@ int djstub_main(int argc, char *argv[], char *envp[], unsigned psp_sel, } if (i) { i += strlen(argv[0]) + 1; - i += 2; + i += 3; } stub_debug("env size %i\n", i); stubinfo.env_size = i;