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/CmpSelectDlg.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Stars45/CmpSelectDlg.cpp') diff --git a/Stars45/CmpSelectDlg.cpp b/Stars45/CmpSelectDlg.cpp index d4ae5e8..0608fe7 100644 --- a/Stars45/CmpSelectDlg.cpp +++ b/Stars45/CmpSelectDlg.cpp @@ -151,7 +151,7 @@ CmpSelectDlg::ExecFrame() double t = campaign->GetLoadTime() - campaign->GetStartTime(); FormatDayTime(time_buf, t); - sprintf(score_buf, "%d", campaign->GetPlayerTeamScore()); + sprintf_s(score_buf, "%d", campaign->GetPlayerTeamScore()); Text desc = Text("") + campaign->Name() + @@ -471,9 +471,9 @@ CmpSelectDlg::OnDelete(AWEvent* event) ConfirmDlg* confirm = manager->GetConfirmDlg(); if (confirm) { char msg[256]; - sprintf(msg, Game::GetText("CmpSelectDlg.are-you-sure"), load_file.data()); - confirm->SetMessage(msg); - confirm->SetTitle(Game::GetText("CmpSelectDlg.confirm")); + sprintf_s(msg, Game::GetText("CmpSelectDlg.are-you-sure"), load_file.data()); + confirm->SetMessage(msg); + confirm->SetTitle(Game::GetText("CmpSelectDlg.confirm")); manager->ShowConfirmDlg(); } -- cgit v1.1