summaryrefslogtreecommitdiff
path: root/src/hexen/sc_man.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hexen/sc_man.c')
-rw-r--r--src/hexen/sc_man.c2
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