From 9b09694770ae4724f3f264603b8ba7ff3865b06a Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 15 May 2007 07:27:59 +0000 Subject: Made make_time_string() return std::string, not char*. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1474 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/chardump.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'crawl-ref/source/chardump.cc') diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc index a5a6b497c5..9f807ede2b 100644 --- a/crawl-ref/source/chardump.cc +++ b/crawl-ref/source/chardump.cc @@ -375,12 +375,8 @@ static void dump_stats( std::string & text ) if (you.real_time != -1) { const time_t curr = you.real_time + (time(NULL) - you.start_time); - char buff[200]; - - make_time_string( curr, buff, sizeof(buff) ); - text += "Play time: "; - text += buff; + text += make_time_string(curr); text += " Number of turns: "; itoa( you.num_turns, st_prn, 10 ); -- cgit v1.2.3-54-g00ecf