diff options
author | Peter Powell <petpow@saberuk.com> | 2016-05-07 23:07:55 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2016-09-09 12:06:57 +0100 |
commit | 51014dffc9ec51c4a4f3d2887c03404dbaa793bc (patch) | |
tree | 0501d5a153829744264645e073a60d850a102321 /src/modules/m_spanningtree | |
parent | 02b32f624c0037614c0041cfbc4bbda0299024cf (diff) |
Replace snprintf usage with InspIRCd::Format.
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/override_map.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/override_map.cpp b/src/modules/m_spanningtree/override_map.cpp index 660d738e9..a22fa48ac 100644 --- a/src/modules/m_spanningtree/override_map.cpp +++ b/src/modules/m_spanningtree/override_map.cpp @@ -82,9 +82,7 @@ static std::vector<std::string> GetMap(User* user, TreeServer* current, unsigned // Pad with spaces until its at max len, max_len must always be >= my names length buffer.append(max_len - current->GetName().length(), ' '); - char buf[16]; - snprintf(buf, sizeof(buf), "%5d [%5.2f%%]", current->UserCount, percent); - buffer += buf; + buffer += InspIRCd::Format("%5d [%5.2f%%]", current->UserCount, percent); if (user->IsOper()) { |