From 5b261af6591368f9b7d620d04c99e5ee06c80c1b Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 22 Feb 2005 13:13:57 +0000 Subject: (svn r1899) - Fix: fix braindead strcmp from previous commit. /me bangs head into the wall --- console_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console_cmds.c b/console_cmds.c index 6fd97804e..a086443bc 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -992,7 +992,7 @@ DEF_CONSOLE_CMD(ConSet) { if (argc == 3 && ci != NULL) { // Don't change the name if it is the same as the old name - if (strncmp(ci->client_name, argv[2], sizeof(_network_player_name)) != 0) { + if (strcmp(ci->client_name, argv[2]) != 0) { if (!_network_server) { SEND_COMMAND(PACKET_CLIENT_SET_NAME)(argv[2]); } else { -- cgit v1.2.3-70-g09d2