diff options
Diffstat (limited to 'src/cmd1.cc')
-rw-r--r-- | src/cmd1.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd1.cc b/src/cmd1.cc index dbb888c7..f4066915 100644 --- a/src/cmd1.cc +++ b/src/cmd1.cc @@ -1001,7 +1001,7 @@ static void carried_monster_attack(s16b m_idx, bool_ *fear, bool_ *mdeath, /* Message */ if (act) { - strfmt(temp, act, t_name); + strnfmt(temp, sizeof(temp), act, t_name); if (t_ptr->ml) msg_format("%s %s", sym_name, temp); @@ -1519,7 +1519,7 @@ static void incarnate_monster_attack(s16b m_idx, bool_ *fear, bool_ *mdeath, /* Message */ if (act) { - strfmt(temp, act, t_name); + strnfmt(temp, sizeof(temp), act, t_name); if (t_ptr->ml) msg_format("You %s", temp); |