summaryrefslogtreecommitdiff
path: root/src/wi_stuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wi_stuff.c')
-rw-r--r--src/wi_stuff.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wi_stuff.c b/src/wi_stuff.c
index e7eece07..e8fcab42 100644
--- a/src/wi_stuff.c
+++ b/src/wi_stuff.c
@@ -1749,11 +1749,13 @@ void WI_loadData(void)
if (gamemode == commercial)
{
- strcpy(bg_lumpname, DEH_String("INTERPIC"));
+ strncpy(bg_lumpname, 9, DEH_String("INTERPIC"));
+ bg_lumpname[8] = '\0';
}
else if (gamemode == retail && wbs->epsd == 3)
{
- strcpy(bg_lumpname, DEH_String("INTERPIC"));
+ strncpy(bg_lumpname, 9, DEH_String("INTERPIC"));
+ bg_lumpname[8] = '\0';
}
else
{