Permalink
Browse files

quickfix for potential out-of-bounds memory access

  • Loading branch information...
1 parent af96ba8 commit bf73c180daecfb886c52c8aec22337979b2b94dd @crowriot committed Jan 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/fruitninja.c
View
@@ -86,7 +86,7 @@ typedef struct
Mix_Chunk *sound;
} SFXInfo;
-SFXInfo SFX[MAX_SOUNDS];
+SFXInfo SFX[MAX_SOUNDS+1]; //<bugfix, MAX_SOUNDS loops are <= (crow_riot)
int SoundCount = 0;
//The music that will be played

0 comments on commit bf73c18

Please sign in to comment.