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/CmpnScreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Stars45/CmpnScreen.cpp') diff --git a/Stars45/CmpnScreen.cpp b/Stars45/CmpnScreen.cpp index 9c59da4..6e20cd6 100644 --- a/Stars45/CmpnScreen.cpp +++ b/Stars45/CmpnScreen.cpp @@ -236,9 +236,9 @@ CmpnScreen::ExecFrame() if (player->Trained() >= all_missions && player->Trained() < 255) { player->SetTrained(255); cmd_msg_dlg->Title()->SetText(Game::GetText("CmpnScreen.training")); - sprintf(msg_info, Game::GetText("CmpnScreen.congrats"), - Player::RankName(player->Rank()), - player->Name().data()); + sprintf_s(msg_info, Game::GetText("CmpnScreen.congrats"), + Player::RankName(player->Rank()), + player->Name().data()); cmd_msg_dlg->Message()->SetText(msg_info); cmd_msg_dlg->Message()->SetTextAlign(DT_LEFT); -- cgit v1.1