From ffc4b685e30d9523bd0fa1385e9fcf02d94861ef Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 29 Sep 2019 17:40:33 +0200 Subject: GRAPHICS: MACGUI: Fixed stack smashing --- graphics/macgui/macwindowborder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/macgui') diff --git a/graphics/macgui/macwindowborder.cpp b/graphics/macgui/macwindowborder.cpp index f11fbdd12e..7dae697c19 100644 --- a/graphics/macgui/macwindowborder.cpp +++ b/graphics/macgui/macwindowborder.cpp @@ -91,7 +91,7 @@ void MacWindowBorder::blitBorderInto(ManagedSurface &destination, bool active) { srf.create(destination.w, destination.h, destination.format); srf.fillRect(Common::Rect(srf.w, srf.h), kColorGreen2); - byte palette[kColorCount]; + byte palette[kColorCount * 3]; g_system->getPaletteManager()->grabPalette(palette, 0, kColorCount); src->blit(srf, 0, 0, srf.w, srf.h, palette, kColorCount); -- cgit v1.2.3