GS/SW: Replace sprintf() with snprintf()

This commit is contained in:
Stenzek 2023-10-02 02:07:41 +10:00 committed by Connor McLaughlin
parent a18c940503
commit 813e2d5b2c
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ union GSScanlineSelector
std::string to_string() const std::string to_string() const
{ {
char str[1024]; char str[1024];
sprintf(str, std::snprintf(str, std::size(str),
"fpsm:%d zpsm:%d ztst:%d ztest:%d atst:%d afail:%d iip:%d rfb:%d fb:%d zb:%d zw:%d " "fpsm:%d zpsm:%d ztst:%d ztest:%d atst:%d afail:%d iip:%d rfb:%d fb:%d zb:%d zw:%d "
"tfx:%d tcc:%d fst:%d ltf:%d tlu:%d wms:%d wmt:%d mmin:%d lcm:%d tw:%d " "tfx:%d tcc:%d fst:%d ltf:%d tlu:%d wms:%d wmt:%d mmin:%d lcm:%d tw:%d "
"fba:%d cclamp:%d date:%d datm:%d " "fba:%d cclamp:%d date:%d datm:%d "