From 4283c7b82212a014d7c02c1a5862bb12bd0404d7 Mon Sep 17 00:00:00 2001 From: Donald Burr Date: Thu, 19 Feb 2015 12:03:18 -0800 Subject: [PATCH] Prevent selecting nonexistent room --- acatcher/acatcher.cxx.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acatcher/acatcher.cxx.template b/acatcher/acatcher.cxx.template index 9b81877..35268b5 100644 --- a/acatcher/acatcher.cxx.template +++ b/acatcher/acatcher.cxx.template @@ -371,7 +371,7 @@ int main(int argc, char *argv[]) if ((c >= 'A') && (c <= 'F')) { cur_listener = c + 10 - 'A'; } - if (old_listener != cur_listener && cur_listener <= MAX) { + if (old_listener != cur_listener && cur_listener < MAX) { cls(); cerr << "Now listening to " << names[cur_listener] << "\r\n"; }