From 9e0b0bfaf3070b7035d19e2301bc626a102e6cb5 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Tue, 24 Sep 2019 03:05:30 -0400 Subject: [PATCH] Allow for queueing to the last mailbox --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 02712ba..985782f 100644 --- a/main.c +++ b/main.c @@ -59,7 +59,7 @@ static int get_input(int num_threads, struct input **res) { if (parse_result == -1) { // On bad input, we should assume an EOF and stop. break; - } else if (current_input.recipient >= num_threads || current_input.recipient < 0) { + } else if (current_input.recipient > num_threads || current_input.recipient < 0) { printf("Invalid recipient id.\n"); continue; }