X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/f0fccd51c27b5cbe8990e625a7bdcf9972142d1f..115393d8e6050cc174ef15cc7cfaca23a81a3b89:/ldisc.c diff --git a/ldisc.c b/ldisc.c index d57e6d17..f2853f4b 100644 --- a/ldisc.c +++ b/ldisc.c @@ -147,7 +147,7 @@ void ldisc_send(void *handle, char *buf, int len, int interactive) if (EDITING) { while (len--) { int c; - c = *buf++ + keyflag; + c = (unsigned char)(*buf++) + keyflag; if (!interactive && c == '\r') c += KCTRL('@'); switch (ldisc->quotenext ? ' ' : c) {