mirror of https://github.com/FWGS/hlsdk-xash3d
Initialize string instead of incorrect copying using sprintf.
This commit is contained in:
parent
60bd3121fb
commit
8b62867643
|
@ -527,8 +527,7 @@ void CVoiceStatus::UpdateServerState(bool bForce)
|
|||
}
|
||||
}
|
||||
|
||||
char str[2048];
|
||||
sprintf(str, "vban");
|
||||
char str[2048] = "vban";
|
||||
bool bChange = false;
|
||||
|
||||
for(unsigned long dw=0; dw < VOICE_MAX_PLAYERS_DW; dw++)
|
||||
|
|
Loading…
Reference in New Issue