mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-30 16:41:31 +00:00
* (bug 3412) %s expansion security patch (DevHC)
This commit is contained in:
parent
9cc4e0c976
commit
59c231c6c6
7 changed files with 12 additions and 12 deletions
|
@ -452,7 +452,7 @@ void CL_DemoCompleted( void )
|
|||
time / (float)clc.timeDemoFrames,
|
||||
clc.timeDemoMaxDuration,
|
||||
CL_DemoFrameDurationSDev( ) );
|
||||
Com_Printf( buffer );
|
||||
Com_Printf( "%s", buffer );
|
||||
|
||||
// Write a log of all the frame durations
|
||||
if( cl_timedemoLog && strlen( cl_timedemoLog->string ) > 0 )
|
||||
|
@ -1045,7 +1045,7 @@ void CL_RequestAuthorization( void ) {
|
|||
|
||||
fs = Cvar_Get ("cl_anonymous", "0", CVAR_INIT|CVAR_SYSTEMINFO );
|
||||
|
||||
NET_OutOfBandPrint(NS_CLIENT, cls.authorizeServer, va("getKeyAuthorize %i %s", fs->integer, nums) );
|
||||
NET_OutOfBandPrint(NS_CLIENT, cls.authorizeServer, "getKeyAuthorize %i %s", fs->integer, nums );
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -3293,7 +3293,7 @@ void CL_GlobalServers_f( void ) {
|
|||
for (i=3; i<count; i++)
|
||||
buffptr += sprintf( buffptr, " %s", Cmd_Argv(i) );
|
||||
|
||||
NET_OutOfBandPrint( NS_SERVER, to, command );
|
||||
NET_OutOfBandPrint( NS_SERVER, to, "%s", command );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue