Fix sprintf in set_name
This commit is contained in:
parent
5c44b8d26b
commit
99da0b5e74
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ int cmd_set_name(int sender_id, char* name){
|
|||
return -1;
|
||||
}
|
||||
|
||||
sprintf(clients[sender_id].name, name, MAX_NAME_LENGTH);
|
||||
sprintf(clients[sender_id].name, "%s", name);
|
||||
|
||||
sprintf(buf, "Name changed for %s\n", name);
|
||||
cmd_send_message(SERVER_ID, sender_id, buf);
|
||||
|
|
Loading…
Reference in a new issue