fixed bug introduced in commit b314952d2f1850d62167afeac27ebafd632064b7

input winsize variable was accidentally being zero'd out