Add more possible baud rates to the Unix serial backend. These are the
[u/mdw/putty] / ldisc.c
diff --git a/ldisc.c b/ldisc.c
index d57e6d1..f2853f4 100644 (file)
--- 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) {