Commit ba9b16aa authored by Keegan McAllister's avatar Keegan McAllister Committed by Keith Winstein
Browse files

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.

(closes #85 github issue)
parent 9a7f3ad3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment