fixed bug in jpeg2000 decoding
[swftools.git] / lib / log.c
index 1f7b96c..e75148f 100644 (file)
--- a/lib/log.c
+++ b/lib/log.c
@@ -205,7 +205,7 @@ void msg(const char* format, ...)
                return;
     }
 
-    vsprintf(buf, format, arglist);
+    vsnprintf(buf, sizeof(buf)-1, format, arglist);
        va_end(arglist);
     strcat(buf, "\n");
     log_str(buf);