aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-01-06 00:45:58 -0300
committerariel- <ariel-@users.noreply.github.com>2017-01-06 00:45:58 -0300
commit829deec2bdda228cbf0144bfe7c639a1c1c0ee09 (patch)
tree1fd62387a6022ee14707c85367f974a42399c135
parent193e51a80bbd31848a09d1e22bf8b7f05957b9f9 (diff)
Core/Scripts: kill one ugly char buffer
-rw-r--r--src/server/scripts/Commands/cs_message.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/scripts/Commands/cs_message.cpp b/src/server/scripts/Commands/cs_message.cpp
index 5906b288eda..fe52ffc4a9a 100644
--- a/src/server/scripts/Commands/cs_message.cpp
+++ b/src/server/scripts/Commands/cs_message.cpp
@@ -160,9 +160,7 @@ public:
if (!*args)
return false;
- char buff[2048];
- sprintf(buff, handler->GetTrinityString(LANG_SYSTEMMESSAGE), args);
- sWorld->SendServerMessage(SERVER_MSG_STRING, buff);
+ sWorld->SendServerMessage(SERVER_MSG_STRING, Trinity::StringFormat(handler->GetTrinityString(LANG_SYSTEMMESSAGE), args).c_str());
return true;
}
// announce to logged in GMs