diff --git a/utils/magichat/main.c b/utils/magichat/main.c index 482a302..6755db7 100644 --- a/utils/magichat/main.c +++ b/utils/magichat/main.c @@ -211,7 +211,7 @@ int main(int argc, char **argv) { for (j=0;jfd == i) { if (strcmp(clients[j]->nick, "UNKNOWN") != 0) { - for(k = 0; k <= client_count; k++) { + for(k = 0; k < client_count; k++) { if (i != clients[k]->fd && strcmp(clients[k]->nick, "UNKNOWN") != 0) { if (send(k, buf, nbytes, 0) == -1) {