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/Contact.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Stars45/Contact.cpp') diff --git a/Stars45/Contact.cpp b/Stars45/Contact.cpp index 8f5678c..667a9e1 100644 --- a/Stars45/Contact.cpp +++ b/Stars45/Contact.cpp @@ -98,11 +98,11 @@ Contact::GetObserverName() const static char name[128]; if (ship) - sprintf(name, "Contact Ship='%s'", ship->Name()); + sprintf_s(name, "Contact Ship='%s'", ship->Name()); else if (shot) - sprintf(name, "Contact Shot='%s' %s", shot->Name(), shot->DesignName()); + sprintf_s(name, "Contact Shot='%s' %s", shot->Name(), shot->DesignName()); else - sprintf(name, "Contact (unknown)"); + sprintf_s(name, "Contact (unknown)"); return name; } -- cgit v1.1