From d286381bac838f2360706837217725254700c45f Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Mon, 20 Mar 2017 12:36:02 +1000 Subject: [PATCH] Another bug --- utils/magichat/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {