forked from premiere/premiere-libtorrent
fixed terminal width underflow bug in client_test
This commit is contained in:
parent
cdf05a9c9c
commit
37d9c8d329
|
@ -1176,6 +1176,9 @@ int main(int argc, char* argv[])
|
||||||
winsize size;
|
winsize size;
|
||||||
ioctl(STDOUT_FILENO, TIOCGWINSZ, (char*)&size);
|
ioctl(STDOUT_FILENO, TIOCGWINSZ, (char*)&size);
|
||||||
terminal_width = size.ws_col;
|
terminal_width = size.ws_col;
|
||||||
|
|
||||||
|
if (terminal_width < 64)
|
||||||
|
terminal_width = 64;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue