mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-31 02:14:09 +03:00
Fix -Wformat-security warnings
These warnings are kinda spammy, and they make sense in principle. vlog_error takes a format string, so passing it an arbitrary string (even error messages from libraries) isn't a good idea.
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
6e832cae20
commit
f60d2a2964
@@ -306,7 +306,7 @@ static int setLevelDirError(const char* text, ...)
|
||||
retval = SDL_vsnprintf(levelDirError, sizeof(levelDirError), text, list);
|
||||
va_end(list);
|
||||
|
||||
vlog_error(levelDirError);
|
||||
vlog_error("%s", levelDirError);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user