Allow for queueing to the last mailbox

master
Nick Krichevsky 2019-09-24 03:05:30 -04:00
parent 0403e2cd75
commit 9e0b0bfaf3
1 changed files with 1 additions and 1 deletions

2
main.c
View File

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