diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-11 00:41:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-11 00:41:42 +0000 |
commit | 021a03b160faa19b3e8a6af6953913d6db6fb5f2 (patch) | |
tree | a4cc5884007519bfaa7f287f56aab7fbf77c24ba /src | |
parent | 026cb652a9433ea057b825efb8c9fd53a024e9ff (diff) |
Doh @ null chars in an sprintf!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3651 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 2abefa974..a71dd30bf 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1199,21 +1199,21 @@ class TreeSocket : public InspSocket specific_voice.push_back(i->second); } - char n = 0; + const char* n = ""; if (x & UCMODE_OP) { - n = '@'; + n = "@"; } else if (x & UCMODE_HOP) { - n = '%'; + n = "%"; } else if (x & UCMODE_VOICE) { - n = '+'; + n = "+"; } - size_t ptrlen = snprintf(ptr, MAXBUF, " %c%s", n, i->second->nick); + size_t ptrlen = snprintf(ptr, MAXBUF, " %s%s", n, i->second->nick); curlen += ptrlen; ptr += ptrlen; |