about summary refs log tree commit diff
path: root/src/engine/e_console.c
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-29 14:34:40 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-29 14:34:40 +0000
commitae71bff0869ad0cf8854f79a8429b4699635ab65 (patch)
tree570de52666927182b2768b30d86214b93f37c39d /src/engine/e_console.c
parent68b3c9843acb9ddf2e96d625fbb4db6ddbbfc02a (diff)
downloadzcatch-ae71bff0869ad0cf8854f79a8429b4699635ab65.tar.gz
zcatch-ae71bff0869ad0cf8854f79a8429b4699635ab65.zip
some clean up and increased the size of a strings in the console
Diffstat (limited to 'src/engine/e_console.c')
-rw-r--r--src/engine/e_console.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/e_console.c b/src/engine/e_console.c
index 751b78ef..1283d721 100644
--- a/src/engine/e_console.c
+++ b/src/engine/e_console.c
@@ -7,7 +7,7 @@
 #include <stdlib.h>
 
 
-#define CONSOLE_MAX_STR_LENGTH 255
+#define CONSOLE_MAX_STR_LENGTH 1024
 /* the maximum number of tokens occurs in a string of length CONSOLE_MAX_STR_LENGTH with tokens size 1 separated by single spaces */
 #define MAX_PARTS (CONSOLE_MAX_STR_LENGTH+1)/2
 
@@ -333,7 +333,7 @@ static void int_variable_command(void *result, void *user_data)
 		data->setter(&config, console_arg_int(result, 0));
 	else
 	{
-		char buf[256];
+		char buf[1024];
 		str_format(buf, sizeof(buf), "Value: %d", data->getter(&config));
 		console_print(buf);
 	}
@@ -347,7 +347,7 @@ static void str_variable_command(void *result, void *user_data)
 		data->setter(&config, console_arg_string(result, 0));
 	else
 	{
-		char buf[256];
+		char buf[1024];
 		str_format(buf, sizeof(buf), "Value: %s", data->getter(&config));
 		console_print(buf);
 	}