From 4d0d77b8f5d047bcde016db220353197796e8f50 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Wed, 19 Jun 2013 03:05:12 -0500 Subject: [PATCH] Fixed sizeof warning in utlbuffer.h for clang 3.3. --- 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 ); } }