diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-12-13 15:39:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-12-13 15:39:23 (GMT) |
commit | e43882908292c514bc01b2ca0c63ce6d0611c692 (patch) | |
tree | a73b0f280a2440f778b4ce2e29c09f8bee03a85b /unix/tclUnixFile.c | |
parent | 94e8f6336742c2df3ad63efbb598af741e0e7c5b (diff) | |
parent | 4cef9fbbe29e5ba76aaa7eaa7e91dd9b7d22e471 (diff) | |
download | tcl-e43882908292c514bc01b2ca0c63ce6d0611c692.zip tcl-e43882908292c514bc01b2ca0c63ce6d0611c692.tar.gz tcl-e43882908292c514bc01b2ca0c63ce6d0611c692.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 6b0ddb0..9f4eb77 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.c @@ -42,8 +42,8 @@ TclpFindExecutable( Tcl_Encoding encoding; #ifdef __CYGWIN__ int length; - char buf[PATH_MAX * 2]; - char name[PATH_MAX * TCL_UTF_MAX + 1]; + wchar_t buf[PATH_MAX]; + char name[PATH_MAX * 3 + 1]; (void)argv0; GetModuleFileNameW(NULL, buf, PATH_MAX); |