diff options
author | Eugene Sandulenko | 2019-09-29 17:40:33 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-29 17:40:33 +0200 |
commit | ffc4b685e30d9523bd0fa1385e9fcf02d94861ef (patch) | |
tree | 20c638933f4132a5f8711cee8f82aa27b99baeed /graphics/macgui | |
parent | 25159714fb529b2d6c0785a545d569cb61e31390 (diff) | |
download | scummvm-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.cpp | 2 |
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); |