From 9a2f3d3377b82b597f00d1d8fb8ee58d141cfb95 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Fri, 9 Dec 2011 21:12:14 +0000 Subject: More string safety stuff --- Stars45/MsnSelectDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Stars45/MsnSelectDlg.cpp') diff --git a/Stars45/MsnSelectDlg.cpp b/Stars45/MsnSelectDlg.cpp index 8972e7c..9530dcf 100644 --- a/Stars45/MsnSelectDlg.cpp +++ b/Stars45/MsnSelectDlg.cpp @@ -443,7 +443,7 @@ MsnSelectDlg::OnDel(AWEvent* event) ConfirmDlg* confirm = manager->GetConfirmDlg(); if (confirm) { char msg[256]; - sprintf(msg, Game::GetText("MsnSelectDlg.are-you-sure").data(), m->Name()); + sprintf_s(msg, Game::GetText("MsnSelectDlg.are-you-sure").data(), m->Name()); confirm->SetMessage(msg); confirm->SetTitle(Game::GetText("MsnSelectDlg.confirm-delete")); confirm->SetParentControl(btn_del); -- cgit v1.1