diff options
Diffstat (limited to 'src/hexen/r_data.c')
-rw-r--r-- | src/hexen/r_data.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hexen/r_data.c b/src/hexen/r_data.c index 0565c891..903eb316 100644 --- a/src/hexen/r_data.c +++ b/src/hexen/r_data.c @@ -315,14 +315,13 @@ void R_InitTextures(void) // // load the patch names from pnames.lmp // - name[8] = 0; names = W_CacheLumpName("PNAMES", PU_STATIC); nummappatches = LONG(*((int *) names)); name_p = names + 4; patchlookup = Z_Malloc(nummappatches * sizeof(*patchlookup), PU_STATIC, NULL); for (i = 0; i < nummappatches; i++) { - strncpy(name, name_p + i * 8, 8); + M_StringCopy(name, name_p + i * 8, 8); patchlookup[i] = W_CheckNumForName(name); } W_ReleaseLumpName("PNAMES"); |