fixed a security bug in logging, added basic xml support to as3 compiler
[swftools.git] / installer / archive.c
index a551759..0502845 100644 (file)
@@ -46,7 +46,7 @@ static void msg(char*format, ...)
     if(!verbose)
        return;
     va_start(arglist, format);
-    vsprintf(buf, format, arglist);
+    vsnprintf(buf, sizeof(buf)-1, format, arglist);
     va_end(arglist);
     l = strlen(buf);
     while(l && buf[l-1]=='\n') {