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/RadioHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Stars45/RadioHandler.cpp') diff --git a/Stars45/RadioHandler.cpp b/Stars45/RadioHandler.cpp index bce8337..8a351c0 100644 --- a/Stars45/RadioHandler.cpp +++ b/Stars45/RadioHandler.cpp @@ -398,7 +398,7 @@ RadioHandler::Inbound(RadioMessage* msg, Ship* ship) else if (!same_rgn) { char info[256]; - sprintf(info, Game::GetText("RadioHandler.too-far-away").data(), ship->GetRegion()->Name()); + sprintf_s(info, Game::GetText("RadioHandler.too-far-away").data(), ship->GetRegion()->Name()); wave_off->SetInfo(info); } @@ -426,12 +426,12 @@ RadioHandler::Inbound(RadioMessage* msg, Ship* ship) if (inbound_slot->Cleared()) { char info[256]; - sprintf(info, Game::GetText("RadioHandler.cleared").data(), deck->Name()); + sprintf_s(info, Game::GetText("RadioHandler.cleared").data(), deck->Name()); approach->SetInfo(info); } else if (sequence) { char info[256]; - sprintf(info, Game::GetText("RadioHandler.sequenced").data(), sequence, deck->Name()); + sprintf_s(info, Game::GetText("RadioHandler.sequenced").data(), sequence, deck->Name()); approach->SetInfo(info); } -- cgit v1.1