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; }