From 2e6e43c4a706e3670f131c7b2d5a5525f9bf0d7b Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 29 Mar 2014 21:25:55 -0400 Subject: heretic: Eliminate use of unsafe string functions. Eliminate use of strcpy, strcat, strncpy, and use the new safe alternatives. --- src/hexen/sc_man.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hexen/sc_man.c') 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 -- cgit v1.2.3