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/CombatAssignment.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Stars45/CombatAssignment.cpp') diff --git a/Stars45/CombatAssignment.cpp b/Stars45/CombatAssignment.cpp index b539ca9..e1683dc 100644 --- a/Stars45/CombatAssignment.cpp +++ b/Stars45/CombatAssignment.cpp @@ -55,14 +55,14 @@ CombatAssignment::GetDescription() const static char desc[256]; if (!resource) - sprintf(desc, "%s %s", - (const char*) Mission::RoleName(type), - (const char*) objective->Name()); + sprintf_s(desc, "%s %s", + (const char*) Mission::RoleName(type), + (const char*) objective->Name()); else - sprintf(desc, "%s %s %s", - (const char*) resource->Name(), - (const char*) Mission::RoleName(type), - (const char*) objective->Name()); + sprintf_s(desc, "%s %s %s", + (const char*) resource->Name(), + (const char*) Mission::RoleName(type), + (const char*) objective->Name()); return desc; } -- cgit v1.1