From 0dc8eab2a96c86ae7376217837786c064f7d4649 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 30 Sep 2012 21:35:16 +0000 Subject: [PATCH] array size fix for r752 git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@753 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/gl_vidsdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Quake/gl_vidsdl.c b/Quake/gl_vidsdl.c index a0f4f756..40a695dd 100644 --- a/Quake/gl_vidsdl.c +++ b/Quake/gl_vidsdl.c @@ -1030,7 +1030,7 @@ static void VID_InitFullDIB (void) // enumerate fullscreen modes flags = SDL_DEFAULT_FLAGS | SDL_FULLSCREEN; - for (i = 0; i < (int)sizeof(bpps); i++) + for (i = 0; i < (int)(sizeof(bpps)/sizeof(int)); i++) { if (nummodes >= MAX_MODE_LIST) break;