From 37d9c8d329c62ba038acddf65059afbb34a12f1f Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 31 May 2010 23:20:00 +0000 Subject: [PATCH] fixed terminal width underflow bug in client_test --- examples/client_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index cb7fdefb8..30b92124b 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -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