Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/console.cc2
1 files changed, 1 insertions, 1 deletions
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