summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.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 /generic/tclFileName.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 'generic/tclFileName.c')
-rw-r--r--generic/tclFileName.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index 9f6b05b..f7d1e76 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -642,7 +642,7 @@ static Tcl_Obj *
SplitUnixPath(
const char *path) /* Pointer to string containing a path. */
{
- int length;
+ size_t length;
const char *origPath = path, *elementStart;
Tcl_Obj *result = Tcl_NewObj();
@@ -731,7 +731,7 @@ static Tcl_Obj *
SplitWinPath(
const char *path) /* Pointer to string containing a path. */
{
- int length;
+ size_t length;
const char *p, *elementStart;
Tcl_PathType type = TCL_PATH_ABSOLUTE;
Tcl_DString buf;
@@ -852,7 +852,8 @@ TclpNativeJoinPath(
Tcl_Obj *prefix,
const char *joining)
{
- int length, needsSep;
+ int needsSep;
+ size_t length;
char *dest;
const char *p;
const char *start;
@@ -2381,7 +2382,7 @@ DoGlob(
*/
if (*p == '\0') {
- int length;
+ size_t length;
Tcl_DString append;
/*