Serial back end for Unix. Due to hardware limitations (no Linux box
[u/mdw/putty] / windows / winser.c
index 35a4ed4..f50eea1 100644 (file)
@@ -217,12 +217,13 @@ static const char *serial_init(void *frontend_handle, void **backend_handle,
     serial = snew(struct serial_backend_data);
     serial->port = NULL;
     serial->out = serial->in = NULL;
+    serial->bufsize = 0;
     *backend_handle = serial;
 
     serial->frontend = frontend_handle;
 
     {
-       char *msg = dupprintf("Opening serial device %s", host);
+       char *msg = dupprintf("Opening serial device %s", cfg->serline);
        logevent(serial->frontend, msg);
     }