diff options
author | dgp <dgp@noemail.net> | 2001-10-16 05:10:33 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2001-10-16 05:10:33 (GMT) |
commit | ff9749d52db8f6fddc12edd91d541dff548acc2b (patch) | |
tree | 3bc613c0232ee4ef5707b1a11feecf8e83636bd6 /generic/tclFileName.c | |
parent | 94fee9571f901284295a74ac709fd4cdd28a94f7 (diff) | |
download | tcl-ff9749d52db8f6fddc12edd91d541dff548acc2b.zip tcl-ff9749d52db8f6fddc12edd91d541dff548acc2b.tar.gz tcl-ff9749d52db8f6fddc12edd91d541dff548acc2b.tar.bz2 |
* Added test to demonstrate memory corruption problems. [Bug 219393].
FossilOrigin-Name: 6134ad64717dd499cd903e2ec44744f331a3bc5d
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r-- | generic/tclFileName.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c index 3f50cf3..72f5a5c 100644 --- a/generic/tclFileName.c +++ b/generic/tclFileName.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclFileName.c,v 1.23 2001/10/15 17:36:29 hobbs Exp $ + * RCS: @(#) $Id: tclFileName.c,v 1.24 2001/10/16 05:10:34 dgp Exp $ */ #include "tclInt.h" @@ -382,7 +382,7 @@ TclpGetNativePathType(pathObjPtr, driveNameLengthPtr, driveNameRef) if (!Tcl_RegExpExec(NULL, re, path, path)) { type = TCL_PATH_RELATIVE; } else { - char *root, *end; + CONST char *root, *end; Tcl_RegExpRange(re, 2, &root, &end); if (root != NULL) { type = TCL_PATH_RELATIVE; @@ -814,7 +814,7 @@ SplitMacPath(path) re = Tcl_GetRegExpFromObj(NULL, tsdPtr->macRootPatternPtr, REG_ADVANCED); if (Tcl_RegExpExec(NULL, re, path, path) == 1) { - char *start, *end; + CONST char *start, *end; Tcl_Obj *nextElt; /* |