diff options
author | Ron Yorston <rmy@pobox.com> | 2024-06-28 08:47:41 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-06-28 10:56:40 +0100 |
commit | fcb61f38cd937242882dd7ecdfbf3b4f68c18a8a (patch) | |
tree | 837b430170c72f0a8e9d2778f846958026bf524c | |
parent | 89ae344452984fcbdbaf46eb66ac6651f58c2891 (diff) | |
download | busybox-w32-fcb61f38cd937242882dd7ecdfbf3b4f68c18a8a.tar.gz busybox-w32-fcb61f38cd937242882dd7ecdfbf3b4f68c18a8a.tar.bz2 busybox-w32-fcb61f38cd937242882dd7ecdfbf3b4f68c18a8a.zip |
win32: don't allow BB_TERMINAL_MODE=6
The BB_TERMINAL_MODE variable is only documented to work for values
between 0 and 5. Due to an oversight it also accepted the value 6.
Like other unsupported values 6 is now replaced with the default
value configured at build time.
-rw-r--r-- | win32/winansi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/winansi.c b/win32/winansi.c index 3b7744b39..2b450aff0 100644 --- a/win32/winansi.c +++ b/win32/winansi.c | |||
@@ -115,7 +115,7 @@ int terminal_mode(int reset) | |||
115 | CONFIG_TERMINAL_MODE; | 115 | CONFIG_TERMINAL_MODE; |
116 | } | 116 | } |
117 | 117 | ||
118 | if (mode < 0 || mode > 6) | 118 | if (mode < 0 || mode > 5) |
119 | mode = CONFIG_TERMINAL_MODE; | 119 | mode = CONFIG_TERMINAL_MODE; |
120 | 120 | ||
121 | if (is_console(STDOUT_FILENO)) { | 121 | if (is_console(STDOUT_FILENO)) { |