fixed a security bug in logging, added basic xml support to as3 compiler
[swftools.git] / lib / devices / polyops.c
index b5bb1d3..fa0b7f4 100644 (file)
@@ -60,7 +60,7 @@ static void dbg(char*format, ...)
     int l;
     va_list arglist;
     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') {