summaryrefslogtreecommitdiffhomepage
path: root/Stars45/RadioHandler.cpp
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-09 21:12:14 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-09 21:12:14 +0000
commit9a2f3d3377b82b597f00d1d8fb8ee58d141cfb95 (patch)
treeaa4691cd582e1b074d43ba30e930f29b7942885d /Stars45/RadioHandler.cpp
parentb2805409566af00bc15639494f5a186fbd2f16e6 (diff)
downloadstarshatter-9a2f3d3377b82b597f00d1d8fb8ee58d141cfb95.zip
starshatter-9a2f3d3377b82b597f00d1d8fb8ee58d141cfb95.tar.gz
starshatter-9a2f3d3377b82b597f00d1d8fb8ee58d141cfb95.tar.bz2
More string safety stuff
Diffstat (limited to 'Stars45/RadioHandler.cpp')
-rw-r--r--Stars45/RadioHandler.cpp6
1 files changed, 3 insertions, 3 deletions
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);
}