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/MsnObjDlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Stars45/MsnObjDlg.cpp') diff --git a/Stars45/MsnObjDlg.cpp b/Stars45/MsnObjDlg.cpp index cdbdd9e..cd266d0 100644 --- a/Stars45/MsnObjDlg.cpp +++ b/Stars45/MsnObjDlg.cpp @@ -251,9 +251,9 @@ MsnObjDlg::Show() char txt[256]; if (design->type <= Ship::ATTACK) - sprintf(txt, "%s %s", design->abrv, design->display_name); + sprintf_s(txt, "%s %s", design->abrv, design->display_name); else - sprintf(txt, "%s %s", design->abrv, elem->Name().data()); + sprintf_s(txt, "%s %s", design->abrv, elem->Name().data()); player_desc->SetText(txt); } -- cgit v1.1