From 396c12ee73193f4ac3665ecac2f634fc0b046697 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 16:46:21 +0000 Subject: Fixes for unsafe string handling, variable scoping errors. --- nGenEx/VideoDX9Enum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nGenEx/VideoDX9Enum.cpp') diff --git a/nGenEx/VideoDX9Enum.cpp b/nGenEx/VideoDX9Enum.cpp index ca2ca7a..bfa98f7 100644 --- a/nGenEx/VideoDX9Enum.cpp +++ b/nGenEx/VideoDX9Enum.cpp @@ -930,7 +930,7 @@ VideoDX9DisplayMode::GetDescription() const { static char desc[32]; - sprintf(desc, "%4d x %4d %-12s %d Hz", + sprintf_s(desc, "%4d x %4d %-12s %d Hz", width, height, D3DFormatToString(format), -- cgit v1.1