X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Flog.c;h=e75148f127fce4c13c7b6bcc4868f9b7bb2bcb7b;hp=05ac58ff7a9bd18ae0bea0e45a2d059857d1feb2;hb=c63b2bf21dc1df9a736f0b4c08f6cba828cdab92;hpb=3cd41fca50349a2e03d5bca74fc5b38d76a4238a diff --git a/lib/log.c b/lib/log.c index 05ac58f..e75148f 100644 --- a/lib/log.c +++ b/lib/log.c @@ -20,19 +20,17 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifdef __NT__ -#include "stdafx.h" -#include #include +#include +#include +#ifdef WIN32 +//#include "stdafx.h" #include #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #else #include -#include -#include -#include #include #endif @@ -207,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);