message-waiting: Fix reading EF_MWIS records

This commit is contained in:
Alfonso Sanchez-Beato 2015-07-16 15:02:18 +02:00 committed by Denis Kenzior
parent cd76f913f0
commit 1b3302322a
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ static void mw_mwis_read_cb(int ok, int total_length, int record,
status = data[0];
data++;
for (i = 0; i < 5 && i < record_length - 1; i++) {
for (i = 0; i < 5 && i < record_length - 1; i++, data++) {
info.indication = (status >> i) & 1;
info.message_count = info.indication ? data[0] : 0;