mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-09 10:39:03 +08:00
Fixed sizeof warning in utlbuffer.h.
This commit is contained in:
parent
16eab68112
commit
51e1b89dcf
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user