From 51e1b89dcf1331bcbf041de70e984762f0b556c5 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Mon, 3 Mar 2014 04:57:58 -0600 Subject: [PATCH] Fixed sizeof warning in utlbuffer.h. --- public/tier1/utlbuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/tier1/utlbuffer.h b/public/tier1/utlbuffer.h index f2c4284b..91265a0b 100644 --- a/public/tier1/utlbuffer.h +++ b/public/tier1/utlbuffer.h @@ -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 ); } }