aboutsummaryrefslogtreecommitdiffstats
path: root/src/terminal.c
diff options
context:
space:
mode:
authorjames <>2008-02-14 10:39:14 +0000
committerjames <>2008-02-14 10:39:14 +0000
commit5a4c8aa348f78026a568ff684b42ea1a2733aa2a (patch)
tree40c7846441cc396994359c83dba5b88a7a186255 /src/terminal.c
parent63abab3ba42f94c69677fced4f8b414e59ec4a37 (diff)
downloadsympathy-5a4c8aa348f78026a568ff684b42ea1a2733aa2a.tar.gz
sympathy-5a4c8aa348f78026a568ff684b42ea1a2733aa2a.tar.bz2
sympathy-5a4c8aa348f78026a568ff684b42ea1a2733aa2a.zip
*** empty log message ***
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c6
1 files changed, 5 insertions, 1 deletions
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);