aboutsummaryrefslogtreecommitdiff
path: root/tools/plink/ldisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/plink/ldisc.c')
-rw-r--r--tools/plink/ldisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/plink/ldisc.c b/tools/plink/ldisc.c
index 20fa3c568..119a02acb 100644
--- a/tools/plink/ldisc.c
+++ b/tools/plink/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) {