diff --git a/src/video/vid_svga.c b/src/video/vid_svga.c index cfb984a5a..93c1eb669 100644 --- a/src/video/vid_svga.c +++ b/src/video/vid_svga.c @@ -1341,7 +1341,7 @@ svga_init(const device_t *info, svga_t *svga, void *priv, int memsize, svga->dispontime = 1000ULL << 32; svga->dispofftime = 1000ULL << 32; svga->bpp = 8; - svga->vram = calloc(memsize, 1); + svga->vram = calloc(memsize + 8, 1); svga->vram_max = memsize; svga->vram_display_mask = svga->vram_mask = memsize - 1; svga->decode_mask = 0x7fffff;