about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/gc_hooks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/gc_hooks.cpp b/src/game/client/gc_hooks.cpp
index 5dadb558..d3feb871 100644
--- a/src/game/client/gc_hooks.cpp
+++ b/src/game/client/gc_hooks.cpp
@@ -552,7 +552,7 @@ extern "C" void modc_message(int msgtype)
 		dbg_msg("game", "MOTD: %s", server_motd);
 		
 		// take the first line as a center text
-		int len = 0;
+		int len = strlen(server_motd)+1;
 		for(int i = 0; server_motd[i]; i++)
 		{
 			if(server_motd[i] == '\n')