summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2023-04-27 20:34:22 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2023-04-27 20:34:22 (GMT)
commit7f433932f67e088cdf21d42138a2fd4c96620ef0 (patch)
tree2db163bbfb804c1ec96248b750928eda8c59ceee /generic/tclStringObj.c
parent76130df46050131c3a1c4ec22d6adbfaa637f2a7 (diff)
downloadtcl-7f433932f67e088cdf21d42138a2fd4c96620ef0.zip
tcl-7f433932f67e088cdf21d42138a2fd4c96620ef0.tar.gz
tcl-7f433932f67e088cdf21d42138a2fd4c96620ef0.tar.bz2
memset(0xff) instead of memset(0) to accomodate tests that fill buffer with
0xff.
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index 3b1f0fb..6bc1c18 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -4502,7 +4502,7 @@ ExtendStringRepWithUnicode(
* Once TCL_UTF_MAX == 3 is removed and Tcl_UniCharToUtf restored to its
* prior non-stateful nature, this call to memset can also be removed.
*/
- memset(dst, 0, stringPtr->allocated - origLength);
+ memset(dst, 0xff, stringPtr->allocated - origLength);
for (i = 0; i < numChars; i++) {
dst += Tcl_UniCharToUtf(unicode[i], dst);
}