diff options
Diffstat (limited to 'PC')
-rw-r--r-- | PC/launcher2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/launcher2.c b/PC/launcher2.c index 9823161..b372044 100644 --- a/PC/launcher2.c +++ b/PC/launcher2.c @@ -853,7 +853,7 @@ searchPath(SearchInfo *search, const wchar_t *shebang, int shebangLength) } wchar_t filename[MAXLEN]; - if (wcsncpy_s(filename, MAXLEN, command, lastDot)) { + if (wcsncpy_s(filename, MAXLEN, command, commandLength)) { return RC_BAD_VIRTUAL_PATH; } |