diff options
author | rubidium <rubidium@openttd.org> | 2008-10-28 16:04:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-10-28 16:04:41 +0000 |
commit | db1fd2e0850d3720ac715df9b86107011a9657fd (patch) | |
tree | 815e6926a369936b4b60e6dd6c09707094a4a426 /src/network/network_gui.cpp | |
parent | 56d0990d62ef2910e4254fbc432f505530a70cd6 (diff) | |
download | openttd-db1fd2e0850d3720ac715df9b86107011a9657fd.tar.xz |
(svn r14542) -Codechange: replace some sprintf with s[en]printf to make sure they will not overflow their buffers.
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 0aa429400..cc23c6eeb 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1512,7 +1512,7 @@ struct NetworkClientListPopupWindow : Window { GetString(this->action[i], STR_NETWORK_CLIENTLIST_KICK, lastof(this->action[i])); this->proc[i++] = &ClientList_Kick; - sprintf(this->action[i],"Ban"); // XXX GetString? + seprintf(this->action[i], lastof(this->action[i]), "Ban"); // XXX GetString? this->proc[i++] = &ClientList_Ban; } |