From ec33e6086ee93eca933bb70126c30457003f549c Mon Sep 17 00:00:00 2001 From: Karchnu Date: Thu, 1 Oct 2020 01:27:33 +0200 Subject: [PATCH] Fixing a broken loop condition. --- src/communication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/communication.c b/src/communication.c index 148a8bc..bd54c37 100644 --- a/src/communication.c +++ b/src/communication.c @@ -522,7 +522,7 @@ struct ipc_error ipc_wait_event (struct ipc_ctx *ctx, struct ipc_event *event, i int timer_ = *timer; /* In case there is a file descriptor that requires more to read. */ - for (size_t i = 0; i <= ctx->size; i++) { + for (size_t i = 0; i < ctx->size; i++) { if (ctx->cinfos[i].more_to_read == 1) { // printf ("There is more to read for _at least_ fd %d\n", ctx->pollfd[i].fd); timer_ = 0;