From 3b808e72a3c4e141987c84bff0c69cd1f41e064d Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 10 Jun 2014 19:53:51 +0200 Subject: [PATCH] capmt: another 'mode 1' fix --- src/descrambler/capmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index 431573e4..5dda3a9b 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -1067,7 +1067,7 @@ handle_ca0(capmt_t *capmt) { if (nfds <= 0) continue; - for (i = 0; i < MAX_CA + 1; i++) { + for (i = 0; i < nfds; i++) { if (ev[i].data.u32 == 0) { ret = read(capmt->capmt_pipe.rd, buf, 1);