Description: WINSZ change in ttyrec.c (getslave) Author: Adam Borowski Bug-Debian: http://bugs.debian.org/472463 Reviewed-By: NIIBE Yutaka Last-Update: 2010-04-27 --- ttyrec-1.0.8.orig/ttyrec.c +++ ttyrec-1.0.8/ttyrec.c @@ -464,8 +464,9 @@ fail(); } #endif - (void) ioctl(0, TIOCGWINSZ, (char *)&win); } + (void) tcsetattr(slave, TCSAFLUSH, &tt); + (void) ioctl(slave, TIOCSWINSZ, (char *)&win); #else /* !SVR4 */ #ifndef HAVE_openpty line[strlen("/dev/")] = 't';