summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/mon-util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 1c1a22e2ae..92fa662ddd 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -5219,8 +5219,8 @@ void monsters::remove_enchantment_effect(const mon_enchant &me, bool quiet)
case ENCH_FEAR:
if (holiness() == MH_NONLIVING || has_ench(ENCH_BERSERK))
{
- // This should only happen because of fleeing Sanctuary
- strcpy( info, " stops retreating.");
+ // This should only happen because of fleeing sanctuary
+ snprintf( info, INFO_SIZE, " stops retreating.");
}
else
{