diff --git a/dll/steam_apps.cpp b/dll/steam_apps.cpp index fc75bf46..edb2616a 100644 --- a/dll/steam_apps.cpp +++ b/dll/steam_apps.cpp @@ -173,6 +173,8 @@ void Steam_Apps::RequestAppProofOfPurchaseKey( AppId_t nAppID ) bool Steam_Apps::GetCurrentBetaName( char *pchName, int cchNameBufferSize ) { PRINT_DEBUG("GetCurrentBetaName %i\n", cchNameBufferSize); + if (!pchName) return false; + if (sizeof("public") > cchNameBufferSize) { return false; }