summaryrefslogtreecommitdiffstats
path: root/generic/tclEncoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r--generic/tclEncoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index c8799e0..83f4787 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -2413,7 +2413,7 @@ UtfToUtfProc(
dst += Tcl_UniCharToUtf(*chPtr, dst);
#if TCL_UTF_MAX <= 4
if ((*chPtr >= 0xD800) && (len < 3)) {
- src += Tcl_UtfToUniChar(src + len, chPtr);
+ src += Tcl_UtfToUniChar(src, chPtr);
dst += Tcl_UniCharToUtf(*chPtr, dst);
}
#endif