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/Bmp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nGenEx/Bmp.cpp') diff --git a/nGenEx/Bmp.cpp b/nGenEx/Bmp.cpp index 18c5870..db81e8f 100644 --- a/nGenEx/Bmp.cpp +++ b/nGenEx/Bmp.cpp @@ -69,7 +69,7 @@ int BmpImage::Load(char *filename) int status = BMP_INVALID; FILE* f; - f = fopen(filename,"rb"); + fopen_s(&f, filename,"rb"); if (f == NULL) return BMP_NOFILE; @@ -214,7 +214,7 @@ int BmpImage::Save(char *filename) int status = BMP_INVALID; FILE* f; - f = fopen(filename,"wb"); + fopen_s(&f, filename,"wb"); if (f == NULL) return BMP_NOFILE; -- cgit v1.1