summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-12-15 16:58:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-12-15 16:58:08 (GMT)
commitcacd6930cf7caa54e575401e527dae2156bc8424 (patch)
treed25f14c15a844639f081a49a0897841989103aae /generic/tclStringObj.c
parentf17186825609c292c275e963cefff8e953504e63 (diff)
downloadtcl-cacd6930cf7caa54e575401e527dae2156bc8424.zip
tcl-cacd6930cf7caa54e575401e527dae2156bc8424.tar.gz
tcl-cacd6930cf7caa54e575401e527dae2156bc8424.tar.bz2
Addendum to [41b1406f51]: change '<=' in range-check to '<'
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 e30b9af..234ad0f 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -1738,7 +1738,7 @@ AppendUtfToUtfRep(
*/
if (bytes && objPtr->bytes && (bytes >= objPtr->bytes)
- && (bytes <= objPtr->bytes + objPtr->length)) {
+ && (bytes < objPtr->bytes + objPtr->length)) {
offset = bytes - objPtr->bytes;
}