summaryrefslogtreecommitdiffhomepage
path: root/Magic2/MagicDoc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Magic2/MagicDoc.cpp')
-rw-r--r--Magic2/MagicDoc.cpp4
1 files changed, 2 insertions, 2 deletions
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)