From 21e0bdd99378c2cb10ab8d0c28e3a4c1de4c9df2 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 14 Apr 2006 20:15:58 +0000 Subject: [PATCH] * Fix to (static!) buffer overflow in renderer (from Thilo Schulz) --- 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 15fbe77a..6f9b0be7 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 )