fixed a security bug in logging, added basic xml support to as3 compiler
[swftools.git] / lib / python / gfx.c
index cbb4eb0..98cc6cb 100644 (file)
@@ -72,7 +72,7 @@ static char* strf(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);
     return strdup(buf);
 }