Fixed sizeof warning in utlbuffer.h for clang 3.3.

This commit is contained in:
Scott Ehlert 2013-06-19 03:05:12 -05:00
parent ed2d3a4a06
commit c65d358990

View File

@ -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 );
} }
} }