diff options
Diffstat (limited to 'src/strife/p_dialog.h')
-rw-r--r-- | src/strife/p_dialog.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/strife/p_dialog.h b/src/strife/p_dialog.h index 7463490b..44b1da6a 100644 --- a/src/strife/p_dialog.h +++ b/src/strife/p_dialog.h @@ -52,7 +52,8 @@ extern int dialogshowtext; do { \
int obj_ln = W_CheckNumForName(DEH_String(x)); \
if(obj_ln > minlumpnum) \
- strncpy(mission_objective, W_CacheLumpNum(obj_ln, PU_CACHE), OBJECTIVE_LEN);\
+ M_StringCopy(mission_objective, W_CacheLumpNum(obj_ln, PU_CACHE), \
+ OBJECTIVE_LEN);\
} while(0)
// haleyjd - voice and objective in one
@@ -61,7 +62,8 @@ do { \ int obj_ln = W_CheckNumForName(DEH_String(log)); \
I_StartVoice(DEH_String(voice)); \
if(obj_ln > minlumpnum) \
- strncpy(mission_objective, W_CacheLumpNum(obj_ln, PU_CACHE), OBJECTIVE_LEN);\
+ M_StringCopy(mission_objective, W_CacheLumpNum(obj_ln, PU_CACHE), \
+ OBJECTIVE_LEN);\
} while(0)
typedef struct mapdlgchoice_s
|