fixed a security bug in logging, added basic xml support to as3 compiler
[swftools.git] / src / swfdump.c
index 0020661..d65e625 100644 (file)
@@ -954,7 +954,7 @@ void dumperror(const char* format, ...)
     va_list arglist;
 
     va_start(arglist, format);
-    vsprintf(buf, format, arglist);
+    vsnprintf(buf, sizeof(buf)-1, format, arglist);
     va_end(arglist);
 
     if(!html && !xy)