diff options
author | Daniel Vassdal <shutter@canternet.org> | 2013-05-18 11:35:10 -0700 |
---|---|---|
committer | Daniel Vassdal <shutter@canternet.org> | 2013-05-18 14:01:21 -0700 |
commit | 4e40ee49bba3f7bab05a58516e2039351fb33069 (patch) | |
tree | 73961818b96646cfbe0a0ff945a23db04edc4823 /src/usermanager.cpp | |
parent | 42ae4790815734dca6357d3b69f2aca604316aa3 (diff) |
Replaced vsnprintf with VAFORMAT pretty much everywhere.
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r-- | src/usermanager.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index aa0be2f3b..09c9a5bde 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -322,13 +322,9 @@ unsigned int UserManager::LocalUserCount() void UserManager::ServerNoticeAll(const char* text, ...) { - char textbuffer[MAXBUF]; - va_list argsPtr; - va_start (argsPtr, text); - vsnprintf(textbuffer, MAXBUF, text, argsPtr); - va_end(argsPtr); - - const std::string message = "NOTICE $" + ServerInstance->Config->ServerName + " :" + textbuffer; + std::string message; + VAFORMAT(message, text, text); + message = "NOTICE $" + ServerInstance->Config->ServerName + " :" + message; for (LocalUserList::const_iterator i = local_users.begin(); i != local_users.end(); i++) { |