summaryrefslogtreecommitdiffstats
path: root/win/tclWinFCmd.c
diff options
context:
space:
mode:
authordrh <drh@sqlite.org>2001-11-28 03:19:08 (GMT)
committerdrh <drh@sqlite.org>2001-11-28 03:19:08 (GMT)
commite163a9c0b59dc20195dcb801c0c85f1287c4292b (patch)
treec1e07bb0ea34ca659b6f958fdc6e67337a21c460 /win/tclWinFCmd.c
parent521e3b55655daa72f0e9a243190d525e7ffcf0a8 (diff)
downloadtcl-e163a9c0b59dc20195dcb801c0c85f1287c4292b.zip
tcl-e163a9c0b59dc20195dcb801c0c85f1287c4292b.tar.gz
tcl-e163a9c0b59dc20195dcb801c0c85f1287c4292b.tar.bz2
Fix a coredump in the filename normalizer code for Win95/98.
Diffstat (limited to 'win/tclWinFCmd.c')
-rw-r--r--win/tclWinFCmd.c5
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;
}
-