Author: jgardou
Date: Sat Dec 31 14:33:35 2011
New Revision: 54793
URL:
http://svn.reactos.org/svn/reactos?rev=54793&view=rev
Log:
[NEWINFLIB]
- use _snwprintf instead of swprintf (MSVC is not compliant with standard here)
Modified:
trunk/reactos/lib/newinflib/infget.c
Modified: trunk/reactos/lib/newinflib/infget.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/newinflib/infget.c?rev…
==============================================================================
--- trunk/reactos/lib/newinflib/infget.c [iso-8859-1] (original)
+++ trunk/reactos/lib/newinflib/infget.c [iso-8859-1] Sat Dec 31 14:33:35 2011
@@ -48,9 +48,10 @@
if (Inf->LanguageId != 0)
{
- swprintf(StringLangId,
- L"Strings.%04hx",
- Inf->LanguageId);
+ _snwprintf(StringLangId,
+ 13,
+ L"Strings.%04hx",
+ Inf->LanguageId);
Status = InfpFindFirstLine(Inf,
StringLangId,
@@ -58,9 +59,10 @@
&Context);
if (Status != INF_STATUS_SUCCESS)
{
- swprintf(StringLangId,
- L"Strings.%04hx",
- MAKELANGID(PRIMARYLANGID(Inf->LanguageId), SUBLANG_NEUTRAL));
+ _snwprintf(StringLangId,
+ 13,
+ L"Strings.%04hx",
+ MAKELANGID(PRIMARYLANGID(Inf->LanguageId), SUBLANG_NEUTRAL));
Status = InfpFindFirstLine(Inf,
StringLangId,