aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
authorEugene Sandulenko2019-09-29 17:40:33 +0200
committerEugene Sandulenko2019-09-29 17:40:33 +0200
commitffc4b685e30d9523bd0fa1385e9fcf02d94861ef (patch)
tree20c638933f4132a5f8711cee8f82aa27b99baeed /graphics/macgui
parent25159714fb529b2d6c0785a545d569cb61e31390 (diff)
downloadscummvm-rg350-ffc4b685e30d9523bd0fa1385e9fcf02d94861ef.tar.gz
scummvm-rg350-ffc4b685e30d9523bd0fa1385e9fcf02d94861ef.tar.bz2
scummvm-rg350-ffc4b685e30d9523bd0fa1385e9fcf02d94861ef.zip
GRAPHICS: MACGUI: Fixed stack smashing
Diffstat (limited to 'graphics/macgui')
-rw-r--r--graphics/macgui/macwindowborder.cpp2
1 files changed, 1 insertions, 1 deletions
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);