mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Fixed sizeof warning in utlbuffer.h for clang 3.3.
This commit is contained in:
@ -1349,7 +1349,7 @@ inline void CUtlBuffer::Spew( )
|
|||||||
while( IsValid() && GetBytesRemaining() )
|
while( IsValid() && GetBytesRemaining() )
|
||||||
{
|
{
|
||||||
V_memset( pTmpLine, 0, sizeof(pTmpLine) );
|
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 );
|
Msg( _T( "%s" ), pTmpLine );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user