summaryrefslogtreecommitdiff
path: root/src/strife/p_dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strife/p_dialog.c')
-rw-r--r--src/strife/p_dialog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strife/p_dialog.c b/src/strife/p_dialog.c
index bd32ee33..6444596f 100644
--- a/src/strife/p_dialog.c
+++ b/src/strife/p_dialog.c
@@ -447,7 +447,7 @@ void P_DialogLoad(void)
int lumpnum;
// load the SCRIPTxy lump corresponding to MAPxy, if it exists.
- sprintf(lumpname, DEH_String("script%02d"), gamemap);
+ DEH_snprintf(lumpname, sizeof(lumpname), "script%02d", gamemap);
if((lumpnum = W_CheckNumForName(lumpname)) == -1)
numleveldialogs = 0;
else