diff options
Diffstat (limited to 'src/game/client/gc_hooks.cpp')
| -rw-r--r-- | src/game/client/gc_hooks.cpp | 2 |
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') |