From 6b300334f7e2dea7ad73ddca4db42e82e7e2c288 Mon Sep 17 00:00:00 2001 From: def Date: Wed, 24 Jun 2015 19:17:49 +0200 Subject: [PATCH] Nicer wording --- src/game/server/score/sql_score.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/game/server/score/sql_score.cpp b/src/game/server/score/sql_score.cpp index b84a54d49..45ba21faf 100644 --- a/src/game/server/score/sql_score.cpp +++ b/src/game/server/score/sql_score.cpp @@ -554,11 +554,12 @@ void CSqlScore::MapInfoThread(void *pUser) int stamp = (int)pData->m_pSqlData->m_pResults->getInt("Stamp"); int ago = (int)pData->m_pSqlData->m_pResults->getInt("Ago"); - char pAgoString[51] = "\0"; + char pAgoString[40]; + char pReleasedString[60]; if(stamp != 0) { - strcpy(pAgoString, ", released "); - agoTimeToString(ago, pAgoString+11); + agoTimeToString(ago, pAgoString); + str_format(pReleasedString, sizeof(pReleasedString), ", released %s ago", pAgoString); } char aStars[20];