mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
UTF-8 processing was discarding a valid character which interrupted
an otherwise legal sequence, if that valid character was the last thing in a term_out() run. Spotted by Egmont Koblinger. [originally from svn r6373]
This commit is contained in:
parent
6b4cf8f443
commit
9d3ab46800
@ -2446,7 +2446,7 @@ static void term_out(Terminal *term)
|
|||||||
unget = -1;
|
unget = -1;
|
||||||
|
|
||||||
chars = NULL; /* placate compiler warnings */
|
chars = NULL; /* placate compiler warnings */
|
||||||
while (nchars > 0 || bufchain_size(&term->inbuf) > 0) {
|
while (nchars > 0 || unget != -1 || bufchain_size(&term->inbuf) > 0) {
|
||||||
if (unget == -1) {
|
if (unget == -1) {
|
||||||
if (nchars == 0) {
|
if (nchars == 0) {
|
||||||
void *ret;
|
void *ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user