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