From 797bcc9523e522366035769b3dc6c9475dde6915 Mon Sep 17 00:00:00 2001 From: Detanup01 <91248446+Detanup01@users.noreply.github.com> Date: Tue, 21 May 2024 21:55:42 +0200 Subject: [PATCH] _s can fuck yourself --- sdk/steam/matchmakingtypes.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/steam/matchmakingtypes.h b/sdk/steam/matchmakingtypes.h index 5f26507a..3e171677 100644 --- a/sdk/steam/matchmakingtypes.h +++ b/sdk/steam/matchmakingtypes.h @@ -42,9 +42,9 @@ struct MatchMakingKeyValuePair_t MatchMakingKeyValuePair_t() { m_szKey[0] = m_szValue[0] = 0; } MatchMakingKeyValuePair_t( const char *pchKey, const char *pchValue ) { - strncpy_s( m_szKey, pchKey, sizeof(m_szKey) ); // this is a public header, use basic c library string funcs only! + strncpy( m_szKey, pchKey, sizeof(m_szKey) ); // this is a public header, use basic c library string funcs only! m_szKey[ sizeof( m_szKey ) - 1 ] = '\0'; - strncpy_s( m_szValue, pchValue, sizeof(m_szValue) ); + strncpy( m_szValue, pchValue, sizeof(m_szValue) ); m_szValue[ sizeof( m_szValue ) - 1 ] = '\0'; } char m_szKey[ 256 ]; @@ -156,9 +156,9 @@ inline const char *servernetadr_t::ToString( uint32 unIP, uint16 usPort ) const static int nBuf = 0; unsigned char *ipByte = (unsigned char *)&unIP; #ifdef VALVE_BIG_ENDIAN - _snprintf_s (s[nBuf], sizeof( s[nBuf] ), "%u.%u.%u.%u:%i", (int)(ipByte[0]), (int)(ipByte[1]), (int)(ipByte[2]), (int)(ipByte[3]), usPort ); + _snprintf (s[nBuf], sizeof( s[nBuf] ), "%u.%u.%u.%u:%i", (int)(ipByte[0]), (int)(ipByte[1]), (int)(ipByte[2]), (int)(ipByte[3]), usPort ); #else - _snprintf_s (s[nBuf], sizeof( s[nBuf] ), "%u.%u.%u.%u:%i", (int)(ipByte[3]), (int)(ipByte[2]), (int)(ipByte[1]), (int)(ipByte[0]), usPort ); + _snprintf (s[nBuf], sizeof( s[nBuf] ), "%u.%u.%u.%u:%i", (int)(ipByte[3]), (int)(ipByte[2]), (int)(ipByte[1]), (int)(ipByte[0]), usPort ); #endif const char *pchRet = s[nBuf]; ++nBuf; @@ -243,7 +243,7 @@ inline const char* gameserveritem_t::GetName() const inline void gameserveritem_t::SetName( const char *pName ) { - strncpy_s( m_szServerName, pName, sizeof( m_szServerName ) ); + strncpy( m_szServerName, pName, sizeof( m_szServerName ) ); m_szServerName[ sizeof( m_szServerName ) - 1 ] = '\0'; }