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/modules/m_spanningtree | |
parent | 42ae4790815734dca6357d3b69f2aca604316aa3 (diff) |
Replaced vsnprintf with VAFORMAT pretty much everywhere.
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 92d274679..244180b2f 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -380,12 +380,8 @@ ModResult ModuleSpanningTree::HandleVersion(const std::vector<std::string>& para */ void ModuleSpanningTree::RemoteMessage(User* user, const char* format, ...) { - char text[MAXBUF]; - va_list argsPtr; - - va_start(argsPtr, format); - vsnprintf(text, MAXBUF, format, argsPtr); - va_end(argsPtr); + std::string text; + VAFORMAT(text, format, format); if (IS_LOCAL(user)) user->WriteNotice(text); |