Author: pschweitzer
Date: Sun Apr 6 13:42:27 2014
New Revision: 62655
URL:
http://svn.reactos.org/svn/reactos?rev=62655&view=rev
Log:
[INPUT]
Fix buffer overrun
CID #716118
Modified:
trunk/reactos/dll/cpl/input/add.c
Modified: trunk/reactos/dll/cpl/input/add.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/input/add.c?rev=62…
==============================================================================
--- trunk/reactos/dll/cpl/input/add.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/input/add.c [iso-8859-1] Sun Apr 6 13:42:27 2014
@@ -221,7 +221,7 @@
Lcid = _tcstoul(lpLanguage, NULL, 16);
- GetLocaleInfo(Lcid, LOCALE_SLANGUAGE, Lang, sizeof(Lang));
+ GetLocaleInfo(Lcid, LOCALE_SLANGUAGE, Lang, sizeof(Lang) / sizeof(Lang[0]));
Index = (INT)SendMessage(hLangList, CB_ADDSTRING,
0, (LPARAM)Lang);