From 347292d8666dbaed6e97f28737571d88a9be1d8f Mon Sep 17 00:00:00 2001 From: Skywing Date: Sat, 5 Jan 2013 14:34:13 -0800 Subject: [PATCH] Use vsnprintf instead of vsprintf in 2d\font.cpp --- 2d/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2d/font.c b/2d/font.c index eaabf54e3..7f96eff17 100644 --- a/2d/font.c +++ b/2d/font.c @@ -900,7 +900,7 @@ int gr_uprintf( int x, int y, const char * format, ... ) va_list args; va_start(args, format ); - vsprintf(buffer,format,args); + vsnprintf(buffer,sizeof(buffer),format,args); return gr_ustring( x, y, buffer ); } @@ -910,7 +910,7 @@ int gr_printf( int x, int y, const char * format, ... ) va_list args; va_start(args, format ); - vsprintf(buffer,format,args); + vsnprintf(buffer,sizeof(buffer),format,args); return gr_string( x, y, buffer ); }