Resolve critical CWE-134 warning

Resolves CWE-134: Use of Externally-Controlled Format String by using c_str on the path variable and removing an invalid string concatenation.
This commit is contained in:
sukibaby
2025-05-06 06:25:06 -07:00
committed by teejusb
parent f18dddd43e
commit 21e6498414
+1 -1
View File
@@ -197,7 +197,7 @@ static void child_process()
FILE *CrashDump = fopen( sCrashInfoPath, "w+" );
if(CrashDump == nullptr)
{
fprintf( stderr, "Couldn't open " + sCrashInfoPath + ": %s\n", strerror(errno) );
fprintf( stderr, "Couldn't open %s: %s\n", sCrashInfoPath.c_str(), strerror(errno) );
exit(1);
}