fixed terminal width underflow bug in client_test

This commit is contained in:
Arvid Norberg 2010-05-31 23:20:00 +00:00
parent cdf05a9c9c
commit 37d9c8d329
1 changed files with 3 additions and 0 deletions

View File

@ -1176,6 +1176,9 @@ int main(int argc, char* argv[])
winsize size;
ioctl(STDOUT_FILENO, TIOCGWINSZ, (char*)&size);
terminal_width = size.ws_col;
if (terminal_width < 64)
terminal_width = 64;
}
#endif