From 7156b2e5a72fb20c9fe1ffcc61b61470959c108f Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 17:30:37 +0000 Subject: More of the same... --- Magic2/MagicDoc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Magic2/MagicDoc.cpp') diff --git a/Magic2/MagicDoc.cpp b/Magic2/MagicDoc.cpp index 640fa41..7b8e6f8 100644 --- a/Magic2/MagicDoc.cpp +++ b/Magic2/MagicDoc.cpp @@ -500,7 +500,7 @@ int LoadTexture(const char* fname, Bitmap*& bitmap, int type) } if (found) { - strcat(tmp, "+.pcx"); + strcat_s(tmp, "+.pcx"); if (pcx.Load(tmp) == PCX_OK && pcx.himap != 0) { bitmap->CopyHighColorImage(pcx.width, pcx.height, pcx.himap); } @@ -544,7 +544,7 @@ int LoadAlpha(const char* name, Bitmap& bitmap, int type) // check for an associated alpha-only (grayscale) bitmap: char filename[256]; - strcpy(filename, name); + strcpy_s(filename, name); char* dot = strrchr(filename, '.'); if (dot && pcx_file) -- cgit v1.1