(svn r14542) -Codechange: replace some sprintf with s[en]printf to make sure they will not overflow their buffers.

This commit is contained in:
rubidium
2008-10-28 16:04:41 +00:00
parent da0a0ef8ca
commit 633b15caf3
4 changed files with 29 additions and 25 deletions

View File

@@ -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;
}