get_terminal_width_height: do not pass insanely large values

This commit is contained in:
Denis Vlasenko
2006-10-27 09:03:24 +00:00
parent d3d004dd35
commit 621204bbf6
6 changed files with 33 additions and 23 deletions
+1 -1
View File
@@ -607,7 +607,7 @@ int telnet_main(int argc, char** argv)
#endif
#ifdef CONFIG_FEATURE_TELNET_TTYPE
ttype = getenv("TERM");
ttype = getenv("TERM");
#endif
memset(&G, 0, sizeof G);
+1 -1
View File
@@ -676,7 +676,7 @@ getttywidth(void)
{
int width=0;
get_terminal_width_height(0, &width, NULL);
return (width);
return width;
}
static void