mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
Fix out of bounds assign in Sys_InitGame (#444)
* Fix out of bounds assign in Sys_InitGame.
This commit is contained in:
parent
c895428d1d
commit
4da6a09875
@ -524,10 +524,7 @@ int Sys_InitGame(char *lpOrgCmdLine, char *pBaseDir, void *pwnd, int bIsDedicate
|
|||||||
ClientDLL_ActivateMouse();
|
ClientDLL_ActivateMouse();
|
||||||
|
|
||||||
char MessageText[512];
|
char MessageText[512];
|
||||||
const char en_US[12];
|
const char en_US[] = "en_US.UTF-8";
|
||||||
|
|
||||||
Q_strcpy(en_US, "en_US.UTF-8");
|
|
||||||
en_US[16] = 0;
|
|
||||||
|
|
||||||
char *cat = setlocale(6, NULL);
|
char *cat = setlocale(6, NULL);
|
||||||
if (!cat)
|
if (!cat)
|
||||||
|
Loading…
Reference in New Issue
Block a user