diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-17 08:51:55 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-17 08:51:55 (GMT) |
commit | af123e3f03048a5013a6802a06321f1386efe71d (patch) | |
tree | 8aaef324a6bcd923c54628b876709f11fe0fabc8 /unix/tkUnixSelect.c | |
parent | 9b2958c5803abffb4174f28adac63058409ded8e (diff) | |
parent | 862f1a276482cc4ca6bf3d1f03709ab1e270c349 (diff) | |
download | tk-af123e3f03048a5013a6802a06321f1386efe71d.zip tk-af123e3f03048a5013a6802a06321f1386efe71d.tar.gz tk-af123e3f03048a5013a6802a06321f1386efe71d.tar.bz2 |
Merge 8.6
Diffstat (limited to 'unix/tkUnixSelect.c')
-rw-r--r-- | unix/tkUnixSelect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tkUnixSelect.c b/unix/tkUnixSelect.c index b6e980e..11161b7 100644 --- a/unix/tkUnixSelect.c +++ b/unix/tkUnixSelect.c @@ -21,7 +21,7 @@ typedef struct ConvertInfo { * offset of the next chunk of data to * transfer. */ Tcl_EncodingState state; /* The encoding state needed across chunks. */ - char buffer[4]; /* A buffer to hold part of a UTF character + char buffer[4]; /* A buffer to hold part of a UTF character * that is split across chunks.*/ } ConvertInfo; @@ -446,7 +446,7 @@ TkSelPropProc( * Preserve any left-over bytes. */ - if (srcLen > 4) { + if (srcLen > 3) { Tcl_Panic("selection conversion left too many bytes unconverted"); } memcpy(incrPtr->converts[i].buffer, src, srcLen + 1); |