From 117899f4021673fe1d94968b213275d380ed5a02 Mon Sep 17 00:00:00 2001 From: sezero Date: Sun, 30 Sep 2012 21:35:16 +0000 Subject: [PATCH] array size fix for r752 git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@753 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/gl_vidsdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quakespasm/Quake/gl_vidsdl.c b/quakespasm/Quake/gl_vidsdl.c index a0f4f756..40a695dd 100644 --- a/quakespasm/Quake/gl_vidsdl.c +++ b/quakespasm/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;