Add WS_TABSTOP on configuration list boxes
[u/mdw/putty] / telnet.c
index 14881f9..00b081b 100644 (file)
--- a/telnet.c
+++ b/telnet.c
@@ -171,7 +171,6 @@ static void s_write (void *buf, int len) {
 static void c_write (char *buf, int len) {
     while (len--) {
        int new_head = (inbuf_head + 1) & INBUF_MASK;
-       int c = (unsigned char) *buf;
        if (new_head != inbuf_reap) {
            inbuf[inbuf_head] = *buf++;
            inbuf_head = new_head;
@@ -350,7 +349,7 @@ static void process_subneg (void) {
            b[0] = IAC; b[1] = SB; b[2] = sb_opt;
            b[3] = TELQUAL_IS;
            n = 4;
-           e = cfg.environ;
+          e = cfg.environmt;
            while (*e) {
                b[n++] = var;
                while (*e && *e != '\t') b[n++] = *e++;