summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-12-26 15:04:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-12-26 15:04:16 (GMT)
commit59eeb967a221a65eafeceea7460f438892396ef7 (patch)
tree4f2796040b1c60486b26aa2ac3853f95d971c685 /unix/tclUnixFile.c
parent50b5581156fef0c05550efc25526d3ffeac13523 (diff)
downloadtcl-59eeb967a221a65eafeceea7460f438892396ef7.zip
tcl-59eeb967a221a65eafeceea7460f438892396ef7.tar.gz
tcl-59eeb967a221a65eafeceea7460f438892396ef7.tar.bz2
Many internal int -> size_t increases, so string lengths > 2Gb can be handled correctly in many more places.
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index a17e598..3da84e0 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -41,7 +41,7 @@ TclpFindExecutable(
{
Tcl_Encoding encoding;
#ifdef __CYGWIN__
- int length;
+ size_t length;
char buf[PATH_MAX * 2];
char name[PATH_MAX * TCL_UTF_MAX + 1];
GetModuleFileNameW(NULL, buf, PATH_MAX);