mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
Fixed sizeof warning in utlbuffer.h for clang 3.3.
This commit is contained in:
parent
1fb040e39d
commit
4d0d77b8f5
@ -1349,7 +1349,7 @@ inline void CUtlBuffer::Spew( )
|
||||
while( IsValid() && GetBytesRemaining() )
|
||||
{
|
||||
V_memset( pTmpLine, 0, sizeof(pTmpLine) );
|
||||
Get( pTmpLine, MIN( (unsigned int)GetBytesRemaining(), sizeof(pTmpLine-1) ) );
|
||||
Get( pTmpLine, MIN( (unsigned int)GetBytesRemaining(), sizeof(pTmpLine)-1 ) );
|
||||
Msg( _T( "%s" ), pTmpLine );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user