1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 04:26:03 +08:00

Fixed compilation of tier1 caused by min/max.

This commit is contained in:
Ted Wang
2021-08-25 15:34:39 -07:00
committed by David Anderson
parent c33f7155e9
commit eea4d13b82
6 changed files with 19 additions and 19 deletions

View File

@ -640,7 +640,7 @@ void CUtlBuffer::GetStringInternal( char *pString, size_t maxLenInChars )
return;
}
const size_t nCharsToRead = min( (size_t)nLen, maxLenInChars ) - 1;
const size_t nCharsToRead = V_min( (size_t)nLen, maxLenInChars ) - 1;
Get( pString, nCharsToRead );
pString[nCharsToRead] = 0;