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)
} }
} }
char str[2048]; char str[2048] = "vban";
sprintf(str, "vban");
bool bChange = false; bool bChange = false;
for(unsigned long dw=0; dw < VOICE_MAX_PLAYERS_DW; dw++) for(unsigned long dw=0; dw < VOICE_MAX_PLAYERS_DW; dw++)

Loading…
Cancel
Save