summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-02-11 15:28:41 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-02-11 15:28:41 (GMT)
commit93480ff215923ba215001b05e93b3316e4742487 (patch)
tree31098b1bfe3bdb60aec45fe69f6aea57ba273956 /generic/tclUtf.c
parentbfcd65034eb86288bb554aef03df7c98101c3089 (diff)
downloadtcl-93480ff215923ba215001b05e93b3316e4742487.zip
tcl-93480ff215923ba215001b05e93b3316e4742487.tar.gz
tcl-93480ff215923ba215001b05e93b3316e4742487.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.
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);