mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-10 22:22:10 +08:00
public: remove Q_strcat and Q_strcpy, and patch the code that uses it
This commit is contained in:
+4
-4
@@ -1162,13 +1162,13 @@ void Cmd_ForwardToServer( void )
|
||||
str[0] = 0;
|
||||
if( Q_stricmp( Cmd_Argv( 0 ), "cmd" ))
|
||||
{
|
||||
Q_strcat( str, Cmd_Argv( 0 ));
|
||||
Q_strcat( str, " " );
|
||||
Q_strncat( str, Cmd_Argv( 0 ), sizeof( str ));
|
||||
Q_strncat( str, " ", sizeof( str ));
|
||||
}
|
||||
|
||||
if( Cmd_Argc() > 1 )
|
||||
Q_strcat( str, Cmd_Args( ));
|
||||
else Q_strcat( str, "\n" );
|
||||
Q_strncat( str, Cmd_Args( ), sizeof( str ));
|
||||
else Q_strncat( str, "\n", sizeof( str ));
|
||||
|
||||
MSG_WriteString( &cls.netchan.message, str );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user