summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2001-10-16 05:10:34 (GMT)
committerdgp@users.sourceforge.net <dgp>2001-10-16 05:10:34 (GMT)
commitf0cf4001d1f5d2cb7c62b931be880688e1eeb520 (patch)
tree3bc613c0232ee4ef5707b1a11feecf8e83636bd6 /generic/tclIO.c
parent10368d528d4f238bb7d476e66b074c8a47d2cd0f (diff)
downloadtcl-f0cf4001d1f5d2cb7c62b931be880688e1eeb520.zip
tcl-f0cf4001d1f5d2cb7c62b931be880688e1eeb520.tar.gz
tcl-f0cf4001d1f5d2cb7c62b931be880688e1eeb520.tar.bz2
* Added test to demonstrate memory corruption problems. [Bug 219393].
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r--generic/tclIO.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 871a8c7..549d1d3 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.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: tclIO.c,v 1.38 2001/09/28 16:06:12 kennykb Exp $
+ * RCS: @(#) $Id: tclIO.c,v 1.39 2001/10/16 05:10:34 dgp Exp $
*/
#include "tclInt.h"
@@ -4689,7 +4689,7 @@ ReadChars(statePtr, objPtr, charsToRead, offsetPtr, factorPtr)
* Got too many chars.
*/
- char *eof;
+ CONST char *eof;
eof = Tcl_UtfAtIndex(dst, toRead);
statePtr->inputEncodingState = oldState;