diff options
author | drh <drh@noemail.net> | 2001-11-28 03:19:08 (GMT) |
---|---|---|
committer | drh <drh@noemail.net> | 2001-11-28 03:19:08 (GMT) |
commit | c1a6c4dbcc1a6a14277e40665a6abf6212819011 (patch) | |
tree | c1e07bb0ea34ca659b6f958fdc6e67337a21c460 /win/tclWinFCmd.c | |
parent | d3ae512e1b7f5ee6a48b2af4264815d02e75b1c1 (diff) | |
download | tcl-c1a6c4dbcc1a6a14277e40665a6abf6212819011.zip tcl-c1a6c4dbcc1a6a14277e40665a6abf6212819011.tar.gz tcl-c1a6c4dbcc1a6a14277e40665a6abf6212819011.tar.bz2 |
Fix a coredump in the filename normalizer code for Win95/98.
FossilOrigin-Name: be370d39fbf15edab28711f9ad9a6e5463cebb14
Diffstat (limited to 'win/tclWinFCmd.c')
-rw-r--r-- | win/tclWinFCmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/win/tclWinFCmd.c b/win/tclWinFCmd.c index 72f1678..7a52268 100644 --- a/win/tclWinFCmd.c +++ b/win/tclWinFCmd.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinFCmd.c,v 1.16 2001/11/19 17:45:12 vincentdarley Exp $ + * RCS: @(#) $Id: tclWinFCmd.c,v 1.17 2001/11/28 03:19:08 drh Exp $ */ #include "tclWinInt.h" @@ -1852,7 +1852,7 @@ TclpObjNormalizePath(interp, pathPtr, nextCheckpoint) Tcl_DStringFree(&ds); return nextCheckpoint; } - cur = *(--lastValidPathEnd); + cur = *(lastValidPathEnd); if (cur == '/' || cur == '\\') { /* Reached directory separator */ break; @@ -1988,4 +1988,3 @@ TclpObjNormalizePath(interp, pathPtr, nextCheckpoint) } return nextCheckpoint; } - |