Browse Source

Initialize string instead of incorrect copying using sprintf.

fix-cwd-path
Andrey Akhmichin 2 years ago
parent
commit
8b62867643
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0
  1. 3
      cl_dll/voice_status.cpp

3
cl_dll/voice_status.cpp

@ -527,8 +527,7 @@ void CVoiceStatus::UpdateServerState(bool bForce) @@ -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…
Cancel
Save