From 499b37c7d8f812b22db120d94772367f336e902a Mon Sep 17 00:00:00 2001 From: tma Date: Fri, 14 Apr 2006 20:15:58 +0000 Subject: * Fix to (static!) buffer overflow in renderer (from Thilo Schulz) git-svn-id: svn://svn.icculus.org/quake3/trunk@703 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/renderer/tr_shade_calc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/renderer/tr_shade_calc.c b/code/renderer/tr_shade_calc.c index 15fbe77..6f9b0be 100644 --- a/code/renderer/tr_shade_calc.c +++ b/code/renderer/tr_shade_calc.c @@ -619,7 +619,7 @@ void RB_CalcColorFromOneMinusEntity( unsigned char *dstColors ) { int i; int *pColors = ( int * ) dstColors; - unsigned char invModulate[3]; + unsigned char invModulate[4]; int c; if ( !backEnd.currentEntity ) -- cgit v1.2.3