diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-03-09 15:13:08 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-03-09 15:13:08 (GMT) |
| commit | 0255b9c3434aae81c12c55f0d34240e8ade8fe19 (patch) | |
| tree | 59ac0e17a1f03dda9587460234e5be58cfc38d62 /unix/tclUnixFile.c | |
| parent | 0c788cde5c30f347307f287a08c708dec79c91e6 (diff) | |
| parent | 764ef9b409175a603666871249e5991dcb7cbd50 (diff) | |
| download | tcl-0255b9c3434aae81c12c55f0d34240e8ade8fe19.zip tcl-0255b9c3434aae81c12c55f0d34240e8ade8fe19.tar.gz tcl-0255b9c3434aae81c12c55f0d34240e8ade8fe19.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 203a118..1ab5d14 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. */ |
