From d489095bcdf9603053ebd514588093a991605ffb Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Fri, 9 Dec 2011 15:37:22 +0000 Subject: More string and fopen safety measures --- nGenEx/VideoDX9.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nGenEx/VideoDX9.cpp') diff --git a/nGenEx/VideoDX9.cpp b/nGenEx/VideoDX9.cpp index d54ae1e..0cf6eda 100644 --- a/nGenEx/VideoDX9.cpp +++ b/nGenEx/VideoDX9.cpp @@ -656,7 +656,8 @@ VideoDX9::CreateBuffers() magic_fx_code_len = loader->LoadBuffer("magic.fx", magic_fx_code, true, true); } else { - FILE* f = ::fopen("magic.fx", "rb"); + FILE* f; + ::fopen_s(&f, "magic.fx", "rb"); if (f) { ::fseek(f, 0, SEEK_END); -- cgit v1.1