Use vsnprintf instead of vsprintf in 2d\font.cpp

This commit is contained in:
Skywing 2013-01-05 14:34:13 -08:00 committed by Kp
parent 29ab6430df
commit 347292d866

View file

@ -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 );
}