summaryrefslogtreecommitdiffstats
path: root/generic/tclStringRep.h
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-05-03 13:18:05 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-05-03 13:18:05 (GMT)
commit688c125ec305e23f82299d3b321a9c262e8af35f (patch)
treed9bad154bfc3010cffe6924a9f61fc9499a00ace /generic/tclStringRep.h
parent06cc962945bd148c0fb2a63ab23e6e3577945929 (diff)
downloadtcl-688c125ec305e23f82299d3b321a9c262e8af35f.zip
tcl-688c125ec305e23f82299d3b321a9c262e8af35f.tar.gz
tcl-688c125ec305e23f82299d3b321a9c262e8af35f.tar.bz2
Fix bug-c9663296fd (in progress)
Diffstat (limited to 'generic/tclStringRep.h')
-rw-r--r--generic/tclStringRep.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclStringRep.h b/generic/tclStringRep.h
index 7f72b04..d4b6b2d 100644
--- a/generic/tclStringRep.h
+++ b/generic/tclStringRep.h
@@ -34,9 +34,10 @@ typedef struct {
* calculated. Any other means that there is a valid
* Unicode rep, or that the number of UTF bytes ==
* the number of chars. */
- Tcl_Size allocated; /* The amount of space actually allocated for
- * the UTF-8 string (minus 1 byte for the
- * termination char). */
+ Tcl_Size allocated; /* The amount of space allocated for
+ * the UTF-8 string. Does not include nul
+ * terminator so actual allocation is
+ * (allocated+1). */
Tcl_Size maxChars; /* Max number of chars that can fit in the
* space allocated for the Unicode array. */
int hasUnicode; /* Boolean determining whether the string has