summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/console_internal.h7
-rw-r--r--src/video/dedicated_v.cpp2
2 files changed, 4 insertions, 5 deletions
diff --git a/src/console_internal.h b/src/console_internal.h
index e1cd2d739..64603806f 100644
--- a/src/console_internal.h
+++ b/src/console_internal.h
@@ -7,10 +7,9 @@
#include "console_func.h"
-/* maximum length of a typed in command */
-#define ICON_CMDLN_SIZE 255
-/* maximum length of a totally expanded command */
-#define ICON_MAX_STREAMSIZE 1024
+enum {
+ ICON_CMDLN_SIZE = 1024, ///< maximum length of a typed in command
+ ICON_MAX_STREAMSIZE = 2048, ///< maximum length of a totally expanded command
enum IConsoleVarTypes {
ICONSOLE_VAR_BOOLEAN,
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp
index 60a20f072..c54f3d826 100644
--- a/src/video/dedicated_v.cpp
+++ b/src/video/dedicated_v.cpp
@@ -216,7 +216,7 @@ static uint32 GetTime()
static void DedicatedHandleKeyInput()
{
- static char input_line[200] = "";
+ static char input_line[1024] = "";
if (!InputWaiting()) return;