summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pamment <apamment@yandex.com>2019-05-11 20:15:37 +1000
committerAndrew Pamment <apamment@yandex.com>2019-05-11 20:15:37 +1000
commit28e33af1547bde3b55fddec5f6cb0687bfaf1902 (patch)
treea8d7bdf4ed8d41d47b6ea5f261cce4b015c3c5eb
parentdbccfe1c7efc053585e5151e05eab42fe2fbcefe (diff)
Fix typo
-rw-r--r--utils/magichat/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/magichat/main.c b/utils/magichat/main.c
index 687f830..6bf8882 100644
--- a/utils/magichat/main.c
+++ b/utils/magichat/main.c
@@ -227,7 +227,7 @@ int main(int argc, char **argv) {
if (FD_ISSET(j, &master)) {
if (ipv6) {
if (j != server_socket && j != server_socket6 && j != clients[k]->fd) {
- for (l =0 l< client_count; l++) {
+ for (l =0; l< client_count; l++) {
if (clients[l]->fd == j) {
if (strcmp(clients[l]->nick, "UNKNOWN") != 0) {
if (send(j, buffer, strlen(buffer), 0) == -1) {
@@ -239,7 +239,7 @@ int main(int argc, char **argv) {
}
} else {
if (j != server_socket && j != clients[k]->fd) {
- for (l =0 l< client_count; l++) {
+ for (l =0; l< client_count; l++) {
if (clients[l]->fd == j) {
if (strcmp(clients[l]->nick, "UNKNOWN") != 0) {
if (send(j, buffer, strlen(buffer), 0) == -1) {