(svn r1899) - Fix: fix braindead strcmp from previous commit. /me bangs head into the wall
authorDarkvater
Tue, 22 Feb 2005 13:13:57 +0000
changeset 1395 f2533e6450d5
parent 1394 79cb56d80a3a
child 1396 9d83f4094235
(svn r1899) - Fix: fix braindead strcmp from previous commit. /me bangs head into the wall
console_cmds.c
--- a/console_cmds.c	Tue Feb 22 12:48:03 2005 +0000
+++ b/console_cmds.c	Tue Feb 22 13:13:57 2005 +0000
@@ -992,7 +992,7 @@
 
 		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 {