diff options
author | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-04-27 20:34:22 (GMT) |
---|---|---|
committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-04-27 20:34:22 (GMT) |
commit | 7f433932f67e088cdf21d42138a2fd4c96620ef0 (patch) | |
tree | 2db163bbfb804c1ec96248b750928eda8c59ceee /generic/tclUtf.c | |
parent | 76130df46050131c3a1c4ec22d6adbfaa637f2a7 (diff) | |
download | tcl-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/tclUtf.c')
-rw-r--r-- | generic/tclUtf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c index 42d2bea..54cef2f 100644 --- a/generic/tclUtf.c +++ b/generic/tclUtf.c @@ -354,7 +354,7 @@ Tcl_UniCharToUtfDString( * 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(p, 0, Tcl_DStringLength(dsPtr) - oldLength); + memset(p, 0xff, Tcl_DStringLength(dsPtr) - oldLength); for (w = uniStr; w < wEnd; ) { p += Tcl_UniCharToUtf(*w, p); @@ -405,7 +405,7 @@ Tcl_Char16ToUtfDString( * Because TCL_COMBINE is used here, memset() is required even when * TCL_UTF_MAX == 4. */ - memset(p, 0, Tcl_DStringLength(dsPtr) - oldLength); + memset(p, 0xff, Tcl_DStringLength(dsPtr) - oldLength); for (w = uniStr; w < wEnd; ) { if (!len && ((*w & 0xFC00) != 0xDC00)) { |