mirror of
https://github.com/holub/mame
synced 2025-04-24 01:11:11 +03:00
fixed out-of-bounds access in amstrad_plus palette initialization (nw)
This commit is contained in:
parent
24f0470150
commit
0b1a51cd92
@ -319,7 +319,7 @@ PALETTE_INIT_MEMBER(amstrad_state,amstrad_plus)
|
||||
{
|
||||
int i;
|
||||
|
||||
palette_set_colors(machine(), 0, amstrad_palette, sizeof(amstrad_palette) / 3);
|
||||
palette_set_colors(machine(), 0, amstrad_palette, ARRAY_LENGTH(amstrad_palette) / 3);
|
||||
for ( i = 0; i < 0x1000; i++ )
|
||||
{
|
||||
int r, g, b;
|
||||
|
Loading…
Reference in New Issue
Block a user