From 813e2d5b2cfa81d2088795cc7c87097195e4c32c Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 2 Oct 2023 02:07:41 +1000 Subject: [PATCH] GS/SW: Replace sprintf() with snprintf() --- pcsx2/GS/Renderers/SW/GSScanlineEnvironment.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/SW/GSScanlineEnvironment.h b/pcsx2/GS/Renderers/SW/GSScanlineEnvironment.h index 1c4ffe4cf9..32e449f63d 100644 --- a/pcsx2/GS/Renderers/SW/GSScanlineEnvironment.h +++ b/pcsx2/GS/Renderers/SW/GSScanlineEnvironment.h @@ -104,7 +104,7 @@ union GSScanlineSelector std::string to_string() const { 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 " "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 "