diff options
Diffstat (limited to 'nGenEx/Bmp.cpp')
-rw-r--r-- | nGenEx/Bmp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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;
|