X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=sympathy.git;a=blobdiff_plain;f=src%2Fterminal.c;h=ab048fdd75d5d87f4b8936fb97375e1d6c513f6d;hp=03b688a30b62288a5e2c1900b5d339b8db625f4b;hb=d822b5ed5d59a25a5ee7fd1478b248b6f5d7fbd7;hpb=cd414751eb1367ac4d0da57630785fed7389d982 diff --git a/src/terminal.c b/src/terminal.c index 03b688a..ab048fd 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * 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 +247,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 +274,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);