X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fpython%2Fgfx.c;h=98cc6cb40f3a51ecac8ed8c3840a5c8e0b245741;hp=cbb4eb091eee64c528bdcded667209a6e4262341;hb=e4687b3aa2aed49fb16ba9e9561344d808750297;hpb=b8aa0577aae67db4da5221459102202febc5c103 diff --git a/lib/python/gfx.c b/lib/python/gfx.c index cbb4eb0..98cc6cb 100644 --- a/lib/python/gfx.c +++ b/lib/python/gfx.c @@ -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); }