msxml3: Avoid a variable-length array.

Thomas Faber thomas.faber at reactos.org
Tue Mar 25 05:56:03 CDT 2014


From f7c5a2ec151a59024633a09f705f90b7b50a5b48 Mon Sep 17 00:00:00 2001
From: Thomas Faber <thomas.faber at reactos.org>
Date: Tue, 25 Mar 2014 09:20:22 +0100
Subject: msxml3: Avoid a variable-length array.

---
 dlls/msxml3/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msxml3/main.c b/dlls/msxml3/main.c
index 5967ac0..d67e4e0 100644
--- a/dlls/msxml3/main.c
+++ b/dlls/msxml3/main.c
@@ -63,9 +63,9 @@ HINSTANCE MSXML_hInstance = NULL;
 
 void wineXmlCallbackLog(char const* caller, xmlErrorLevel lvl, char const* msg, va_list ap)
 {
-    static const int max_size = 200;
     enum __wine_debug_class dbcl;
-    char buff[max_size];
+    char buff[200];
+    const int max_size = sizeof(buff) / sizeof(buff[0]);
     int len;
 
     switch (lvl)
-- 
1.8.3.2



More information about the wine-patches mailing list