diff options
author | Simon Howard | 2014-03-29 21:25:55 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-29 21:25:55 -0400 |
commit | 2e6e43c4a706e3670f131c7b2d5a5525f9bf0d7b (patch) | |
tree | 5779e2bb137ce8771b1c12f1f3fd234d16d997f6 /src/hexen/sc_man.c | |
parent | 5f9b4368a2adad65dcc960a76c45d12059ca7214 (diff) | |
download | chocolate-doom-2e6e43c4a706e3670f131c7b2d5a5525f9bf0d7b.tar.gz chocolate-doom-2e6e43c4a706e3670f131c7b2d5a5525f9bf0d7b.tar.bz2 chocolate-doom-2e6e43c4a706e3670f131c7b2d5a5525f9bf0d7b.zip |
heretic: Eliminate use of unsafe string functions.
Eliminate use of strcpy, strcat, strncpy, and use the new safe
alternatives.
Diffstat (limited to 'src/hexen/sc_man.c')
-rw-r--r-- | src/hexen/sc_man.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hexen/sc_man.c b/src/hexen/sc_man.c index 833d7e1e..2802596b 100644 --- a/src/hexen/sc_man.c +++ b/src/hexen/sc_man.c @@ -138,7 +138,7 @@ static void OpenScript(char *name, int type) ScriptLumpNum = W_GetNumForName(name); ScriptBuffer = (char *) W_CacheLumpNum(ScriptLumpNum, PU_STATIC); ScriptSize = W_LumpLength(ScriptLumpNum); - strcpy(ScriptName, name); + M_StringCopy(ScriptName, name, sizeof(ScriptName)); } else if (type == FILE_ZONE_SCRIPT) { // File script - zone |