Initialize string instead of incorrect copying using sprintf.

This commit is contained in:
Andrey Akhmichin 2022-11-08 23:45:20 +05:00
parent 60bd3121fb
commit 8b62867643
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0
1 changed files with 1 additions and 2 deletions

View File

@ -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++)