X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpython%2Fgfx.c;h=98cc6cb40f3a51ecac8ed8c3840a5c8e0b245741;hb=69715349931b6feffe90ec4ef905656bc02beaab;hp=cbb4eb091eee64c528bdcded667209a6e4262341;hpb=b641c574ebe37ed07e588d4577d853d74e999c99;p=swftools.git 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); }