diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-12-11 08:09:30 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-12-11 08:09:30 +0100 |
commit | 5ce1ccafa65c5cfbcd0f4431f51abfa1d700a885 (patch) | |
tree | a788b50131527a2464b52a47f346023fa64071bf /src/cmd1.cc | |
parent | 97bcf1bc612d9920390c885b8dcea0b0cda6f246 (diff) |
Remove strfmt()
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); |