summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
-