summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-23 13:30:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-23 13:30:45 (GMT)
commit7e63083ea10c94a9a905807f6f457820303f787f (patch)
tree0db35f66b0aaef9cca59a04278f416a90673bebc /win/tclWinFile.c
parent92eff9a92206e2292cbd5dbc8e2320ce874ea7fb (diff)
parent5c8ce61f7963bdd41e0d7c9d18a7b4e5f918eb35 (diff)
downloadtcl-7e63083ea10c94a9a905807f6f457820303f787f.zip
tcl-7e63083ea10c94a9a905807f6f457820303f787f.tar.gz
tcl-7e63083ea10c94a9a905807f6f457820303f787f.tar.bz2
Merge 8.7
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r--win/tclWinFile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index f954516..676ae38 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -866,7 +866,7 @@ TclpFindExecutable(
char name[MAX_PATH * 3];
(void)argv0;
- GetModuleFileNameW(NULL, wName, MAX_PATH);
+ GetModuleFileNameW(NULL, wName, sizeof(wName)/sizeof(WCHAR));
WideCharToMultiByte(CP_UTF8, 0, wName, -1, name, sizeof(name), NULL, NULL);
TclWinNoBackslash(name);
TclSetObjNameOfExecutable(Tcl_NewStringObj(name, -1), NULL);