diff options
Diffstat (limited to 'code/server/sv_main.c')
-rw-r--r-- | code/server/sv_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/code/server/sv_main.c b/code/server/sv_main.c index 0d3f96c..2804a52 100644 --- a/code/server/sv_main.c +++ b/code/server/sv_main.c @@ -172,6 +172,14 @@ void QDECL SV_SendServerCommand(client_t *cl, const char *fmt, ...) { Q_vsnprintf ((char *)message, sizeof(message), fmt,argptr); va_end (argptr); + // Fix to http://aluigi.altervista.org/adv/q3msgboom-adv.txt + // The actual cause of the bug is probably further downstream + // and should maybe be addressed later, but this certainly + // fixes the problem for now + if ( strlen ((char *)message) > 1022 ) { + return; + } + if ( cl != NULL ) { SV_AddServerCommand( cl, (char *)message ); return; |