summaryrefslogtreecommitdiffstats
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
parent521e3b55655daa72f0e9a243190d525e7ffcf0a8 (diff)
downloadtcl-e163a9c0b59dc20195dcb801c0c85f1287c4292b.zip
tcl-e163a9c0b59dc20195dcb801c0c85f1287c4292b.tar.gz
tcl-e163a9c0b59dc20195dcb801c0c85f1287c4292b.tar.bz2
Fix a coredump in the filename normalizer code for Win95/98.
-rw-r--r--ChangeLog5
-rw-r--r--win/tclWinFCmd.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e35ae4..02fcbea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-27 D. Richard Hipp <drh@hwaci.com>
+
+ * win/tclWinFCmd.c: Fix a coredump in the filename normalizer
+ code for Win95/98.
+
2001-11-27 David Gravereaux <davygrvy@pobox.com>
* win/makefile.vc: Removed the Tk reference for the 'winhelp' target.
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;
}
-