From 4da6a098753c8e98d0f7bc12653e071ed9c4f584 Mon Sep 17 00:00:00 2001 From: In-line Date: Wed, 26 Apr 2017 17:44:18 +0400 Subject: [PATCH] Fix out of bounds assign in Sys_InitGame (#444) * Fix out of bounds assign in Sys_InitGame. --- rehlds/engine/sys_dll2.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rehlds/engine/sys_dll2.cpp b/rehlds/engine/sys_dll2.cpp index df546cf..220d4d9 100644 --- a/rehlds/engine/sys_dll2.cpp +++ b/rehlds/engine/sys_dll2.cpp @@ -524,10 +524,7 @@ int Sys_InitGame(char *lpOrgCmdLine, char *pBaseDir, void *pwnd, int bIsDedicate ClientDLL_ActivateMouse(); char MessageText[512]; - const char en_US[12]; - - Q_strcpy(en_US, "en_US.UTF-8"); - en_US[16] = 0; + const char en_US[] = "en_US.UTF-8"; char *cat = setlocale(6, NULL); if (!cat)