summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2009-02-11 15:28:40 (GMT)
committerdgp <dgp@noemail.net>2009-02-11 15:28:40 (GMT)
commita4e247642cf5d6d2a52900335b40868ddbb414ea (patch)
tree31098b1bfe3bdb60aec45fe69f6aea57ba273956 /generic/tclUtf.c
parent491a735b8ed591e2bb516fc47cf0b3e0d5dc0dcb (diff)
downloadtcl-a4e247642cf5d6d2a52900335b40868ddbb414ea.zip
tcl-a4e247642cf5d6d2a52900335b40868ddbb414ea.tar.gz
tcl-a4e247642cf5d6d2a52900335b40868ddbb414ea.tar.bz2
* generic/tclStringObj.c: Changed type of the 'allocated' field
of the String struct from size_t to int since only int values are ever stored in it. FossilOrigin-Name: 93efedde3fce70892b3790eaddb1a0ac32d737fa
Diffstat (limited to 'generic/tclUtf.c')
-rw-r--r--generic/tclUtf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c
index aed3ff7..16acab2 100644
--- a/generic/tclUtf.c
+++ b/generic/tclUtf.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUtf.c,v 1.38 2008/04/27 22:21:33 dkf Exp $
+ * RCS: @(#) $Id: tclUtf.c,v 1.39 2009/02/11 15:28:59 dgp Exp $
*/
#include "tclInt.h"
@@ -417,6 +417,7 @@ Tcl_UtfToUniCharDString(
*/
oldLength = Tcl_DStringLength(dsPtr);
+/* TODO: fix overreach! */
Tcl_DStringSetLength(dsPtr,
(int) ((oldLength + length + 1) * sizeof(Tcl_UniChar)));
wString = (Tcl_UniChar *) (Tcl_DStringValue(dsPtr) + oldLength);