diff options
author | Darkvater <Darkvater@openttd.org> | 2005-02-22 13:13:57 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-02-22 13:13:57 +0000 |
commit | 3e1f6cc45267a9a0917d7a77c2b41cdef58291ae (patch) | |
tree | 5eaba0dbbd058f47d9ac779481cbd067c05eb028 /console_cmds.c | |
parent | a370af76d296100c6b00563929d16b50e612d103 (diff) | |
download | openttd-3e1f6cc45267a9a0917d7a77c2b41cdef58291ae.tar.xz |
(svn r1899) - Fix: fix braindead strcmp from previous commit. /me bangs head into the wall
Diffstat (limited to 'console_cmds.c')
-rw-r--r-- | console_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |