keithw/mosh — pull request #85 by kmcallister (2012-03-27 03:59:17+00:00)
Title: Fully initialize the argument to TIOCSWINSZ

`struct winsize` contains fields other than `ws_col` and `ws_row`. To avoid passing uninitialized data to `TIOCSWINSZ`, initialize it first using `TIOCGWINSZ`.

Found by Valgrind.