From e163a9c0b59dc20195dcb801c0c85f1287c4292b Mon Sep 17 00:00:00 2001 From: drh Date: Wed, 28 Nov 2001 03:19:08 +0000 Subject: Fix a coredump in the filename normalizer code for Win95/98. --- ChangeLog | 5 +++++ win/tclWinFCmd.c | 5 ++--- 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 + + * win/tclWinFCmd.c: Fix a coredump in the filename normalizer + code for Win95/98. + 2001-11-27 David Gravereaux * 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; } - -- cgit v0.12