mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
public: remove Q_sprintf, and patch all code that used it to use Q_snprintf instead
This commit is contained in:
@@ -769,7 +769,7 @@ void GAME_EXPORT Host_Error( const char *error, ... )
|
||||
recursive = true;
|
||||
Q_strncpy( hosterror2, hosterror1, MAX_SYSPATH );
|
||||
host.errorframe = host.framecount; // to avoid multply calls per frame
|
||||
Q_sprintf( host.finalmsg, "Server crashed: %s", hosterror1 );
|
||||
Q_snprintf( host.finalmsg, sizeof( host.finalmsg ), "Server crashed: %s", hosterror1 );
|
||||
|
||||
// clearing cmd buffer to prevent execute any commands
|
||||
COM_InitHostState();
|
||||
|
||||
Reference in New Issue
Block a user