From 1ab177757bec9eb28482785f75fd8a4fb8a1313c Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Thu, 17 Dec 2009 12:48:02 +0100 Subject: Replace static snprintf() with make_sprintf() where the result is immediately cast to std::string. --- crawl-ref/source/ouch.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crawl-ref/source/ouch.cc') diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 93eaacd48b..1c7d94cf1f 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -1082,8 +1082,7 @@ void ouch(int dam, int death_source, kill_method_type death_type, std::string damage_desc; if (!see_source) { - snprintf(info, INFO_SIZE, "something (%d)", dam); - damage_desc = info; + damage_desc = make_stringf("something (%d)", dam); } else { -- cgit v1.2.3-54-g00ecf