summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-09 10:37:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-09 10:37:16 (GMT)
commit3bc6fd2261f66c5850405e0bf54cf3ed766892d4 (patch)
tree79bc76c8676c22966f3022bdc84c0a259132fee5 /unix/tclUnixFile.c
parenteef781f5537a9a199f960bc73659205bb09873c9 (diff)
parent122c6b2c017a836a95ce18c26dfda8ae065bc1b1 (diff)
downloadtcl-3bc6fd2261f66c5850405e0bf54cf3ed766892d4.zip
tcl-3bc6fd2261f66c5850405e0bf54cf3ed766892d4.tar.gz
tcl-3bc6fd2261f66c5850405e0bf54cf3ed766892d4.tar.bz2
Merge 9.0
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index 3c8a318..05876a8 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -44,8 +44,8 @@ TclpFindExecutable(
wchar_t buf[PATH_MAX];
char name[PATH_MAX * 3 + 1];
- GetModuleFileNameW(NULL, buf, PATH_MAX);
- cygwin_conv_path(3, buf, name, PATH_MAX);
+ GetModuleFileNameW(NULL, buf, sizeof(buf)/sizeof(wchar_t));
+ cygwin_conv_path(3, buf, name, sizeof(name));
length = strlen(name);
if ((length > 4) && !strcasecmp(name + length - 4, ".exe")) {
/* Strip '.exe' part. */