diff options
Diffstat (limited to 'src/doom/d_net.c')
-rw-r--r-- | src/doom/d_net.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doom/d_net.c b/src/doom/d_net.c index 9594d0f7..ad46dc80 100644 --- a/src/doom/d_net.c +++ b/src/doom/d_net.c @@ -32,6 +32,7 @@ #include "d_main.h" #include "m_argv.h" #include "m_menu.h" +#include "m_misc.h" #include "i_system.h" #include "i_timer.h" #include "i_video.h" @@ -59,8 +60,8 @@ static void PlayerQuitGame(player_t *player) // Do this the same way as Vanilla Doom does, to allow dehacked // replacements of this message - strncpy(exitmsg, DEH_String("Player 1 left the game"), sizeof(exitmsg)); - exitmsg[sizeof(exitmsg) - 1] = '\0'; + M_StringCopy(exitmsg, DEH_String("Player 1 left the game"), + sizeof(exitmsg)); exitmsg[7] += player_num; |