diff options
Diffstat (limited to 'lib/python/gfx.c')
-rw-r--r-- | lib/python/gfx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/gfx.c b/lib/python/gfx.c index cbb4eb09..98cc6cb4 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); } |