# HG changeset patch # User Sam Lantinga # Date 1039585948 0 # Node ID b528214c8c9a57fbc0ed818707b49b0a2154c1e0 # Parent 2312d983e1fe40e0aba407de7a88fcfe11c68fb5 Fixed invalid memory access in DGA video driver (thanks ldb!) diff -r 2312d983e1fe -r b528214c8c9a src/video/dga/SDL_dgavideo.c --- a/src/video/dga/SDL_dgavideo.c Wed Dec 11 05:47:32 2002 +0000 +++ b/src/video/dga/SDL_dgavideo.c Wed Dec 11 05:52:28 2002 +0000 @@ -474,7 +474,7 @@ SDL_SetError("Unable to switch to requested mode"); return(NULL); } - DGA_visualClass = modes[i].visualClass; + DGA_visualClass = mode->mode.visualClass; memory_base = (Uint8 *)mode->data; memory_pitch = mode->mode.bytesPerScanline;