From a7f3d5e04460143284d7e0c831567955b540b793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Mon, 28 Jan 2013 01:37:31 +0000 Subject: [PATCH] =?UTF-8?q?(MESS)=20fixed=20usage=20of=20uninitialized=20m?= =?UTF-8?q?emory=20in=20mess/video/733=5Fasr.c=20(MT05126)=20[Oliver=20St?= =?UTF-8?q?=C3=B6neberg]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mess/video/733_asr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mess/video/733_asr.c b/src/mess/video/733_asr.c index 81a472372a9..39bfe5c3db9 100644 --- a/src/mess/video/733_asr.c +++ b/src/mess/video/733_asr.c @@ -668,7 +668,8 @@ void asr733_keyboard(device_t *device) enum { repeat_delay = 5 /* approx. 1/10s */ }; - UINT16 key_buf[6]; + //UINT16 key_buf[6]; + UINT16 key_buf[4]; int i, j; modifier_state_t modifier_state; int repeat_mode; @@ -740,7 +741,8 @@ void asr733_keyboard(device_t *device) } else { - for (i=0; i<6; i++) + //for (i=0; i<6; i++) + for (i=0; i<4; i++) { for (j=0; j<16; j++) {