From e5aada2bf01e51753829215c0a3035aa8bd8135a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 5 Jul 2008 10:17:39 +0000 Subject: ncurses updates, refactored say --- src/client/console.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/console.cc') diff --git a/src/client/console.cc b/src/client/console.cc index 6d286a9..b52f8a0 100644 --- a/src/client/console.cc +++ b/src/client/console.cc @@ -165,7 +165,7 @@ void Console::keypressed(unsigned int key) else console_scroll = 0; break; default: - if ((key >= 32 ) && (key <175)) { + if ((key >= 32 ) && (key <175) && ((*history_pos).size() < MAXCMDSIZE)) { if (input_pos == (*history_pos).size()) (*history_pos) += (char)key; else -- cgit v1.2.3