From 2a288a7e127d37962fa0ec3659d73d8f33bfdc63 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 9 Jul 2014 05:26:48 +0200 Subject: Static Code Analysis : Avoid potential overflow when parsing language file by specifying width for 's' conversion specifier --- src/Common/Language.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/Language.c b/src/Common/Language.c index 5d23902d..b146f820 100644 --- a/src/Common/Language.c +++ b/src/Common/Language.c @@ -298,7 +298,7 @@ BOOL LoadLanguageFile () do { - if (sscanf (header, "#define %s %d", key, &intKey) == 2) + if (sscanf (header, "#define %127s %d", key, &intKey) == 2) { WCHAR *str = GetString (key); -- cgit v1.2.3