summaryrefslogtreecommitdiff
path: root/src/spells1.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2010-01-10 15:54:35 +0100
committerBardur Arantsson <bardur@scientician.net>2010-01-10 19:32:02 +0100
commit3d46b09fe21dfdea43b0e4e224363ecb67a0fb9b (patch)
treef0ca4de091927fe4ddf2b19a105a4afabcd45c63 /src/spells1.c
parentc2d791994cc8b30d9e6aa2c71a94998dfacc07d4 (diff)
Clean up sprintf() usage to always use a "%s" format string.
Diffstat (limited to 'src/spells1.c')
-rw-r--r--src/spells1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/spells1.c b/src/spells1.c
index 8f9c38c3..4d088f6c 100644
--- a/src/spells1.c
+++ b/src/spells1.c
@@ -7312,7 +7312,8 @@ static bool project_p(int who, int r, int y, int x, int dam, int typ, int a_rad)
if (who == -2)
{
- sprintf(killer, t_name + t_info[cave[p_ptr->py][p_ptr->px].t_idx].name);
+ sprintf(killer, "%s",
+ t_name + t_info[cave[p_ptr->py][p_ptr->px].t_idx].name);
}
/* Analyze the damage */