summaryrefslogtreecommitdiff
path: root/src/hexen/p_inter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hexen/p_inter.c')
-rw-r--r--src/hexen/p_inter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hexen/p_inter.c b/src/hexen/p_inter.c
index b66042ad..514d92a6 100644
--- a/src/hexen/p_inter.c
+++ b/src/hexen/p_inter.c
@@ -78,8 +78,8 @@ void P_SetMessage(player_t * player, char *message, boolean ultmsg)
}
if (strlen(message) > 79)
{
- memcpy(player->message, message, 80);
- player->message[80] = 0;
+ strncpy(player->message, message, 80);
+ player->message[79] = 0;
}
else
{
@@ -112,8 +112,8 @@ void P_SetYellowMessage(player_t * player, char *message, boolean ultmsg)
}
if (strlen(message) > 79)
{
- memcpy(player->message, message, 80);
- player->message[80] = 0;
+ strncpy(player->message, message, 80);
+ player->message[79] = 0;
}
else
{