Module: wine Branch: master Commit: 9d79ca78db237d2a420ad734304db991fc598863 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9d79ca78db237d2a420ad73430...
Author: Thomas Faber thomas.faber@reactos.org Date: Tue Mar 25 09:20:22 2014 +0100
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)