fixed buffer size of the error message if path is longer than 4052

This commit is contained in:
Grizzle 2025-03-01 10:34:41 +01:00 committed by GitHub
parent 17fb1fd7c8
commit f5356adf22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -157,7 +157,7 @@ static bool LoadSteam( const char *pRootDir )
s_SteamModule = Launcher_LoadModule(szPathBuffer);
if ( !s_SteamModule )
{
char szErrorBuffer[4096];
char szErrorBuffer[4140];
_snprintf(szErrorBuffer, sizeof(szErrorBuffer), "Not able to load Steam API. Is %s missing?", szPathBuffer);
szErrorBuffer[sizeof(szErrorBuffer) - 1] = '\0';