From 040ca1cfb5a3e1be7d05bcd90eaa4f01fb68437a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 29 Mar 2014 21:23:29 -0400 Subject: doom: Eliminate use of unsafe string functions. Eliminate use of strcpy, strcat, strncpy, and use the new safe alternatives. --- src/doom/r_data.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/doom/r_data.c') diff --git a/src/doom/r_data.c b/src/doom/r_data.c index 13c9eb98..3d59a171 100644 --- a/src/doom/r_data.c +++ b/src/doom/r_data.c @@ -36,6 +36,7 @@ #include "w_wad.h" #include "doomdef.h" +#include "m_misc.h" #include "r_local.h" #include "p_local.h" @@ -491,19 +492,19 @@ void R_InitTextures (void) // Load the patch names from pnames.lmp. - name[8] = 0; + name[8] = 0; names = W_CacheLumpName (DEH_String("PNAMES"), PU_STATIC); nummappatches = LONG ( *((int *)names) ); - name_p = names+4; + name_p = names + 4; patchlookup = Z_Malloc(nummappatches*sizeof(*patchlookup), PU_STATIC, NULL); - - for (i=0 ; i