diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-15 19:55:16 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-12-15 19:55:16 (GMT) |
| commit | 1bcaf97bfdcfc794caf8606cf3da5ddac8bc02d6 (patch) | |
| tree | 7c1d8d3f8cf1b287cbf3d710de07c8be92afc08b /generic/tclPathObj.c | |
| parent | acb6a88df555fe8bdf2271bdbddb5fe19046b6c2 (diff) | |
| parent | ab6e69444f61e776bbfb2bcf6a6ca95047df149c (diff) | |
| download | tcl-1bcaf97bfdcfc794caf8606cf3da5ddac8bc02d6.zip tcl-1bcaf97bfdcfc794caf8606cf3da5ddac8bc02d6.tar.gz tcl-1bcaf97bfdcfc794caf8606cf3da5ddac8bc02d6.tar.bz2 | |
merge trunk
Diffstat (limited to 'generic/tclPathObj.c')
| -rw-r--r-- | generic/tclPathObj.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c index d2364ac..56c2c11 100644 --- a/generic/tclPathObj.c +++ b/generic/tclPathObj.c @@ -1809,7 +1809,6 @@ Tcl_FSGetNormalizedPath( */ (void) TclGetStringFromObj(dir, &cwdLen); - cwdLen += (Tcl_GetString(copy)[cwdLen] == '/'); /* Normalize the combined string. */ @@ -1831,12 +1830,12 @@ Tcl_FSGetNormalizedPath( * normalized head, we can more efficiently normalize the combined * path by passing over only the unnormalized tail portion. When * this is sufficient, prior developers claim this should be much - * faster. We use 'cwdLen-1' so that we are already pointing at + * faster. We use 'cwdLen' so that we are already pointing at * the dir-separator that we know about. The normalization code * will actually start off directly after that separator. */ - TclFSNormalizeToUniquePath(interp, copy, cwdLen-1); + TclFSNormalizeToUniquePath(interp, copy, cwdLen); } /* Now we need to construct the new path object. */ |
