diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-27 13:03:24 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-27 13:03:24 +0400 |
commit | 621204bbf6750f1ba3977b43bb35375ddda6b5ae (patch) | |
tree | cd34a619db35dccb76043c1bf118d297e17ac436 /networking | |
parent | d3d004dd3507f841745956a035fff68936378f9c (diff) |
get_terminal_width_height: do not pass insanely large values
Diffstat (limited to 'networking')
-rw-r--r-- | networking/telnet.c | 2 | ||||
-rw-r--r-- | networking/wget.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/networking/telnet.c b/networking/telnet.c index 5b8c885e2..628e2e6e3 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -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); diff --git a/networking/wget.c b/networking/wget.c index 425abc13f..c163209f2 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -676,7 +676,7 @@ getttywidth(void) { int width=0; get_terminal_width_height(0, &width, NULL); - return (width); + return width; } static void |