From 1fbe806f85a332da2f8f4a6701ba9a7515bebd85 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Mon, 17 Feb 2020 20:07:25 -0500 Subject: [PATCH] SIM_CARD: Fixed typo. --- sim_card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_card.c b/sim_card.c index fc75797..fcb2af2 100644 --- a/sim_card.c +++ b/sim_card.c @@ -791,7 +791,7 @@ _sim_parse_card(UNIT *uptr, DEVICE *dptr, struct _card_buffer *buf, uint16 (*ima for (col = i = 0; i < 160;) { temp |= (uint16)(buf->buffer[i] & 0xff); (*image)[col] = (buf->buffer[i++] >> 4) & 0xF; - (*image)[col++] |= ((uint16)buf->buffer[i++] & 0xf) << 4; + (*image)[col++] |= ((uint16)buf->buffer[i++] & 0xff) << 4; } /* Check if format error */ if (temp & 0xF)