From 1f5164b51bdb19c81b61df640262896b197a266b Mon Sep 17 00:00:00 2001 From: Pysicopadingo Date: Mon, 31 Oct 2022 23:34:24 +0100 Subject: [PATCH] Change display of list command --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 946366c..40bb9c3 100644 --- a/src/server.c +++ b/src/server.c @@ -226,7 +226,7 @@ int cmd_list_connected(int sender_id) { for (int i = 0; i < MAX_CLIENTS; i++) { if ((clients[i].id != -1) && (clients[i].id != sender_id)) { nb_clients++; - sprintf(buf, " %d\n", clients[i].id); + sprintf(buf, "%d \n", clients[i].id); write(clients[sender_id].pipe[1], buf, strlen(buf)); } }