1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Nuke some snprintf

This commit is contained in:
2013-02-01 14:40:00 -05:00
parent efd5cddaef
commit 798764d84e
2 changed files with 4 additions and 6 deletions

View File

@ -1235,9 +1235,8 @@ void plNetClientMgr::IDisableNet () {
if (!GetFlagsBit(plNetClientApp::kPlayingGame))
{
// KI may not be loaded
char title[256];
snprintf(title, arrsize(title), "%s Error", plProduct::CoreName().c_str());
hsMessageBox(fDisableMsg->str, title, hsMessageBoxNormal, hsMessageBoxIconError );
plString title = plString::Format("%s Error", plProduct::CoreName().c_str());
hsMessageBox(fDisableMsg->str, title.c_str(), hsMessageBoxNormal, hsMessageBoxIconError );
plClientMsg *quitMsg = new plClientMsg(plClientMsg::kQuit);
quitMsg->Send(hsgResMgr::ResMgr()->FindKey(kClient_KEY));
}