From 7084c7521db8508c09624345700f4c8a83a97c01 Mon Sep 17 00:00:00 2001 From: "rhyskidd@gmail.com" Date: Mon, 16 Jul 2012 15:54:06 +0000 Subject: =?UTF-8?q?PVS-Studio=20fix:=20V618=20It=E2=80=99s=20dangerous=20t?= =?UTF-8?q?o=20call=20the=20'sprintf=5Fs'=20function=20in=20such=20a=20man?= =?UTF-8?q?ner,=20as=20the=20line=20being=20passed=20could=20contain=20for?= =?UTF-8?q?mat=20specification.=20The=20example=20of=20the=20safe=20code:?= =?UTF-8?q?=20printf("%s",=20str);?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Stars45/MsnEditDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Stars45/MsnEditDlg.cpp') diff --git a/Stars45/MsnEditDlg.cpp b/Stars45/MsnEditDlg.cpp index ed8f912..f26a52b 100644 --- a/Stars45/MsnEditDlg.cpp +++ b/Stars45/MsnEditDlg.cpp @@ -342,7 +342,7 @@ MsnEditDlg::DrawPackages() sprintf_s(txt, "%s %s", design->abrv, design->name); } else { - sprintf_s(txt, Game::GetText("MsnDlg.undefined").data()); + sprintf_s(txt, "%s", Game::GetText("MsnDlg.undefined").data()); } lst_elem->SetItemText(i, 3, txt); -- cgit v1.1