diff options
author | Simon Howard | 2014-03-29 21:49:57 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-29 21:49:57 -0400 |
commit | eb3a4033c7d6f1d5e042edd5f416bbc257e40975 (patch) | |
tree | 9b6871a887655f88b4dbb1c5412469924604fb7e /src/strife/d_net.c | |
parent | 1e5e0a565cbcaf4f8aafa5a12c84e987aa822e13 (diff) | |
download | chocolate-doom-eb3a4033c7d6f1d5e042edd5f416bbc257e40975.tar.gz chocolate-doom-eb3a4033c7d6f1d5e042edd5f416bbc257e40975.tar.bz2 chocolate-doom-eb3a4033c7d6f1d5e042edd5f416bbc257e40975.zip |
strife: Eliminate use of unsafe string functions.
Eliminate use of strcpy, strcat, strncpy, and use the new safe
alternatives.
Diffstat (limited to 'src/strife/d_net.c')
-rw-r--r-- | src/strife/d_net.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/strife/d_net.c b/src/strife/d_net.c index 065f74e1..b4f125d2 100644 --- a/src/strife/d_net.c +++ b/src/strife/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" @@ -58,8 +59,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; |