diff options
author | tron <tron@openttd.org> | 2005-08-28 12:24:57 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-08-28 12:24:57 +0000 |
commit | d975abc96c4eabd4a1053ee21f2b6951779a87c4 (patch) | |
tree | dfedf7a20a1b1bef9337b90678b68de7ec35aa61 /console_cmds.c | |
parent | 70c07d13beca606e76d61b546d864a8961578b98 (diff) | |
download | openttd-d975abc96c4eabd4a1053ee21f2b6951779a87c4.tar.xz |
(svn r2899) -Fix: Several format string vulnerabilities and buffer overflows in the network code
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 56e896d69..5eeb261ed 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -1132,7 +1132,7 @@ DEF_CONSOLE_HOOK(ConProcPlayerName) SEND_COMMAND(PACKET_CLIENT_SET_NAME)(_network_player_name); } else { if (NetworkFindName(_network_player_name)) { - NetworkTextMessage(NETWORK_ACTION_NAME_CHANGE, 1, false, ci->client_name, _network_player_name); + NetworkTextMessage(NETWORK_ACTION_NAME_CHANGE, 1, false, ci->client_name, "%s", _network_player_name); ttd_strlcpy(ci->client_name, _network_player_name, sizeof(ci->client_name)); NetworkUpdateClientInfo(NETWORK_SERVER_INDEX); } |