From d5db243378e98e577bf61ef0081e624cbddb2d8e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 21 Jan 2004 03:49:35 +0000 Subject: [PATCH] fix writing uninitialized data to banner cache (harmless) --- stepmania/src/SDL_utils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/SDL_utils.cpp b/stepmania/src/SDL_utils.cpp index e71bc2d352..9b1b59db0c 100644 --- a/stepmania/src/SDL_utils.cpp +++ b/stepmania/src/SDL_utils.cpp @@ -553,6 +553,8 @@ bool mySDL_SaveSurface( SDL_Surface *img, CString file ) return false; SurfaceHeader h; + memset( &h, 0, sizeof(h) ); + h.height = img->h; h.width = img->w; h.pitch = img->pitch;