X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fdevices%2Fops.c;h=7b5f1c7e78c776bb0e8d95aa475132541253abf2;hb=bf04757cd94e94c1f67fa3d2a4e3e59fa5bce0c0;hp=cb0c6f13e84ba26dfdb2c3af947371a16aa5cde7;hpb=d3b866c5e1eabd63561904d9f1d792f44b485f1e;p=swftools.git diff --git a/lib/devices/ops.c b/lib/devices/ops.c index cb0c6f1..7b5f1c7 100644 --- a/lib/devices/ops.c +++ b/lib/devices/ops.c @@ -46,7 +46,7 @@ static void dbg(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); l = strlen(buf); while(l && buf[l-1]=='\n') {