mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-28 21:10:16 +01:00
system.c: Fix Sys_Warn/Error
text buffer sizes
This was using the wrong define E.g. `-dev 2 -help` output did not fit into it
This commit is contained in:
parent
23998ef720
commit
2106eef4b2
@ -381,12 +381,12 @@ Just messagebox
|
||||
void Sys_Warn( const char *format, ... )
|
||||
{
|
||||
va_list argptr;
|
||||
char text[MAX_SYSPATH];
|
||||
char text[MAX_PRINT_MSG];
|
||||
|
||||
DEBUG_BREAK;
|
||||
|
||||
va_start( argptr, format );
|
||||
Q_vsnprintf( text, MAX_SYSPATH, format, argptr );
|
||||
Q_vsnprintf( text, MAX_PRINT_MSG, format, argptr );
|
||||
va_end( argptr );
|
||||
Msg( "Sys_Warn: %s\n", text );
|
||||
if( !Host_IsDedicated() ) // dedicated server should not hang on messagebox
|
||||
@ -404,7 +404,7 @@ before call this
|
||||
void Sys_Error( const char *error, ... )
|
||||
{
|
||||
va_list argptr;
|
||||
char text[MAX_SYSPATH];
|
||||
char text[MAX_PRINT_MSG];
|
||||
|
||||
DEBUG_BREAK;
|
||||
|
||||
@ -417,7 +417,7 @@ void Sys_Error( const char *error, ... )
|
||||
error_on_exit = true;
|
||||
host.status = HOST_ERR_FATAL;
|
||||
va_start( argptr, error );
|
||||
Q_vsprintf( text, error, argptr );
|
||||
Q_vsnprintf( text, MAX_PRINT_MSG, error, argptr );
|
||||
va_end( argptr );
|
||||
|
||||
SV_SysError( text );
|
||||
|
Loading…
Reference in New Issue
Block a user