engine: common: imagelib: replace va function calls.

This commit is contained in:
Andrey Akhmichin 2022-12-18 22:03:59 +05:00 committed by Alibek Omarov
parent 6486533355
commit 9e9703e6de
1 changed files with 3 additions and 1 deletions

View File

@ -577,7 +577,9 @@ void Test_RunImagelib( void )
for( i = 0; i < sizeof(extensions) / sizeof(extensions[0]); i++ )
{
const char *name = va( "test_gen.%s", extensions[i] );
char name[MAX_VA_STRING];
Q_snprintf( name, sizeof( name ), "test_gen.%s", extensions[i] );
// test saving
qboolean ret = FS_SaveImage( name, &rgb );