diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-09-24 14:13:14 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-09-24 14:13:14 (GMT) |
commit | 9dc50cfea3577af25d9d20eb13ebdbe608294c94 (patch) | |
tree | ddd3e3bac2724c1d572c0fb542913ddbc914ebaf /unix/tclUnixFile.c | |
parent | 05631cdda6a915139f20a913b9fd821c56ba6f0c (diff) | |
parent | 3d43898853cb0d4550889e72c6f6452cff60fa7d (diff) | |
download | tcl-9dc50cfea3577af25d9d20eb13ebdbe608294c94.zip tcl-9dc50cfea3577af25d9d20eb13ebdbe608294c94.tar.gz tcl-9dc50cfea3577af25d9d20eb13ebdbe608294c94.tar.bz2 |
Merge 8.7
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r-- | unix/tclUnixFile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c index 6cbdec9..998614d 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.c @@ -41,10 +41,10 @@ TclpFindExecutable( { Tcl_Encoding encoding; int length; - wchar_t buf[PATH_MAX]; + wchar_t buf[PATH_MAX] = L""; char name[PATH_MAX * 3 + 1]; - GetModuleFileNameW(NULL, buf, sizeof(buf)/sizeof(wchar_t)); + GetModuleFileNameW(NULL, buf, PATH_MAX); cygwin_conv_path(3, buf, name, sizeof(name)); length = strlen(name); if ((length > 4) && !strcasecmp(name + length - 4, ".exe")) { |