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/Element.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Stars45/Element.cpp') diff --git a/Stars45/Element.cpp b/Stars45/Element.cpp index 7b3c099..4cb36a9 100644 --- a/Stars45/Element.cpp +++ b/Stars45/Element.cpp @@ -35,7 +35,7 @@ zone_lock(0), respawns(0), count(0), rogue(false), playable(true), intel(0) { if (!call_sign) { char buf[32]; - sprintf(buf, "Pkg %d", id); + sprintf_s(buf, "Pkg %d", id); name = buf; } -- cgit v1.1