Change display of list command
This commit is contained in:
parent
ba4f4b8aa7
commit
1f5164b51b
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ int cmd_list_connected(int sender_id) {
|
||||||
for (int i = 0; i < MAX_CLIENTS; i++) {
|
for (int i = 0; i < MAX_CLIENTS; i++) {
|
||||||
if ((clients[i].id != -1) && (clients[i].id != sender_id)) {
|
if ((clients[i].id != -1) && (clients[i].id != sender_id)) {
|
||||||
nb_clients++;
|
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));
|
write(clients[sender_id].pipe[1], buf, strlen(buf));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue