diff options
| author | 2006-09-25 21:58:32 +0000 | |
|---|---|---|
| committer | 2006-09-25 21:58:32 +0000 | |
| commit | 24dfb05a8681591aaeaf852214c6c268bb40ed3e (patch) | |
| tree | 6613c07d9944771f821d1a5e2ff3f4d6e0eb3f5d /src/modules/m_check.cpp | |
| parent | Document the ability to have multiple <http> tags (diff) | |
Mini security audit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5333 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_check.cpp')
| -rw-r--r-- | src/modules/m_check.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index 86bc9cef5..17ed26e3a 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -127,7 +127,7 @@ class cmd_check : public command_t * find how many connections from this user's IP -- unlike Asuka, * I define a clone as coming from the same host. --w00t */ - sprintf(ptr, "%lu ", i->second->GlobalCloneCount()); + snprintf(ptr, MAXBUF, "%lu ", i->second->GlobalCloneCount()); if (flags & UCMODE_OP) { @@ -144,8 +144,8 @@ class cmd_check : public command_t strcat(ptr, "+"); } - sprintf(tmpbuf, "%s (%s@%s) %s ", i->second->nick, i->second->ident, i->second->dhost, i->second->fullname); - strcat(ptr, tmpbuf); + snprintf(tmpbuf, MAXBUF, "%s (%s@%s) %s ", i->second->nick, i->second->ident, i->second->dhost, i->second->fullname); + strlcat(ptr, tmpbuf, MAXBUF); user->WriteServ(checkstr + " member " + ptr); } |
