X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fterminal.c;h=9a3290eeee645e81057f6e326ce84ceaa732b8a3;hb=82aed0c41cd917fdf9cdb20db788fe9da0662eba;hp=03b688a30b62288a5e2c1900b5d339b8db625f4b;hpb=ca18756e89e072fa067751f421a4f9879596e70b;p=sympathy.git diff --git a/src/terminal.c b/src/terminal.c index 03b688a..9a3290e 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -10,6 +10,12 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.9 2008/02/15 03:32:07 james + * *** empty log message *** + * + * Revision 1.8 2008/02/14 10:39:14 james + * *** empty log message *** + * * Revision 1.7 2008/02/14 01:55:57 james * *** empty log message *** * @@ -244,11 +250,11 @@ terminal_open (int rfd, int wfd) { TERMINAL *t; pid_t child; - char name[1024]; struct termios termios; t = (TERMINAL *) malloc (sizeof (TERMINAL)); + strcpy (t->name, "terminal"); t->rfd = rfd; t->wfd = wfd; @@ -271,6 +277,7 @@ terminal_open (int rfd, int wfd) t->recv = terminal_read; t->xmit = terminal_write; t->close = terminal_close; + t->blocked = 0; terminal_getsize ((TTY *) t);