summaryrefslogtreecommitdiff
path: root/src/spells1.c
diff options
context:
space:
mode:
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 */