diff options
| author | dgp <dgp@users.sourceforge.net> | 2020-04-13 14:30:49 (GMT) |
|---|---|---|
| committer | dgp <dgp@users.sourceforge.net> | 2020-04-13 14:30:49 (GMT) |
| commit | ea5d755488be5c353d266e5ef9666e9e13457f17 (patch) | |
| tree | e35a3d2c43dcc7a88b11fdcb28dfed8d3b150a36 | |
| parent | f5a417ed5c95ff45121cea802cbb49d212e68a16 (diff) | |
| download | tcl-ea5d755488be5c353d266e5ef9666e9e13457f17.zip tcl-ea5d755488be5c353d266e5ef9666e9e13457f17.tar.gz tcl-ea5d755488be5c353d266e5ef9666e9e13457f17.tar.bz2 | |
A NUL byte cannot be mistaken for a trail byte.
| -rw-r--r-- | generic/tclUtil.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c index 15b67b9..82ef9b7 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -1625,11 +1625,6 @@ TclTrimLeft( const char *q = trim; int bytesLeft = numTrim; - /* take care about real length of char, e.g. if TclUtfToUniChar would - * mistakenly consider NTS 0-byte as a continuation of invalid utf-8 - * sequence, bug [c61818e4c9] */ - if (pInc > numBytes) {pInc = numBytes;} - /* Inner loop: scan trim string for match to current character */ do { Tcl_UniChar ch2; |
