From 826057d2b52385ee9db4c6a5b7bd9d837b941a73 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 15 Jan 1997 21:17:59 +0000 Subject: [PATCH] test for TIOCSWINSZ instead of incorrectly using TIOCGWINSZ git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1164 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnetd/sys_term.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/appl/telnet/telnetd/sys_term.c b/appl/telnet/telnetd/sys_term.c index cb0ad4baa..2a2124484 100644 --- a/appl/telnet/telnetd/sys_term.c +++ b/appl/telnet/telnetd/sys_term.c @@ -937,10 +937,8 @@ void getptyslave(void) # ifdef LINEMODE int waslm; # endif -# ifdef TIOCGWINSZ struct winsize ws; extern int def_row, def_col; -# endif extern int def_tspeed, def_rspeed; /* * Opening the slave side may cause initilization of the @@ -1018,7 +1016,7 @@ void getptyslave(void) * set up the tty modes as we like them to be. */ init_termbuf(); -# ifdef TIOCGWINSZ +# ifdef TIOCSWINSZ if (def_row || def_col) { memset(&ws, 0, sizeof(ws)); ws.ws_col = def_col;