summaryrefslogtreecommitdiff
path: root/lib/python/gfx.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/gfx.c')
-rw-r--r--lib/python/gfx.c2
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);
}