diff options
author | Simon Howard | 2014-03-29 21:25:55 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-29 21:25:55 -0400 |
commit | 2e6e43c4a706e3670f131c7b2d5a5525f9bf0d7b (patch) | |
tree | 5779e2bb137ce8771b1c12f1f3fd234d16d997f6 /src/hexen/d_net.c | |
parent | 5f9b4368a2adad65dcc960a76c45d12059ca7214 (diff) | |
download | chocolate-doom-2e6e43c4a706e3670f131c7b2d5a5525f9bf0d7b.tar.gz chocolate-doom-2e6e43c4a706e3670f131c7b2d5a5525f9bf0d7b.tar.bz2 chocolate-doom-2e6e43c4a706e3670f131c7b2d5a5525f9bf0d7b.zip |
heretic: Eliminate use of unsafe string functions.
Eliminate use of strcpy, strcat, strncpy, and use the new safe
alternatives.
Diffstat (limited to 'src/hexen/d_net.c')
-rw-r--r-- | src/hexen/d_net.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hexen/d_net.c b/src/hexen/d_net.c index 5c64f7ed..19a43584 100644 --- a/src/hexen/d_net.c +++ b/src/hexen/d_net.c @@ -35,6 +35,7 @@ #include "i_video.h" #include "i_videohr.h" #include "h2def.h" +#include "m_misc.h" #include "p_local.h" #include "s_sound.h" #include "w_checksum.h" @@ -61,7 +62,7 @@ static void PlayerQuitGame(player_t *player) player_num = player - players; - strcpy(exitmsg, "PLAYER 1 LEFT THE GAME"); + M_StringCopy(exitmsg, "PLAYER 1 LEFT THE GAME", sizeof(exitmsg)); exitmsg[7] += player_num; P_SetMessage(&players[consoleplayer], exitmsg, true); S_StartSound(NULL, SFX_CHAT); |