diff options
| author | 2008-05-22 05:04:14 +0000 | |
|---|---|---|
| committer | 2008-05-22 05:04:14 +0000 | |
| commit | 11b1331d3fa3487460e22eba582dd4b664649268 (patch) | |
| tree | aad236c4a8975e7064a83da23734d11b0453703d | |
| parent | d4c1d73b8ff73da3ccdba57457aeb5cc0b47a9c5 (diff) | |
Fixed incorrectly sized array that led to stack corruption during validity checks.
Fixes CPS1 no-start issue.
| -rw-r--r-- | src/emu/validity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/validity.c b/src/emu/validity.c index d0f9a464b23..c7fcaccbb21 100644 --- a/src/emu/validity.c +++ b/src/emu/validity.c @@ -1095,7 +1095,7 @@ static void validate_dip_settings(const input_field_config *field, const game_dr { const char *demo_sounds = input_port_string_from_index(INPUT_STRING_Demo_Sounds); const char *flipscreen = input_port_string_from_index(INPUT_STRING_Flip_Screen); - UINT8 coin_list[INPUT_STRING_1C_9C - INPUT_STRING_9C_1C] = { 0 }; + UINT8 coin_list[INPUT_STRING_1C_9C + 1 - INPUT_STRING_9C_1C] = { 0 }; const input_setting_config *setting; int coin_error = FALSE; |
