summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-28 16:04:41 +0000
committerrubidium <rubidium@openttd.org>2008-10-28 16:04:41 +0000
commit633b15caf3f616f7778ca153573097fcb7fdfad0 (patch)
tree815e6926a369936b4b60e6dd6c09707094a4a426 /src/network
parentda0a0ef8ca740e9d23b71a1b02c4fc0c7512eaec (diff)
downloadopenttd-633b15caf3f616f7778ca153573097fcb7fdfad0.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')
-rw-r--r--src/network/network_gui.cpp2
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;
}