From 24dfb05a8681591aaeaf852214c6c268bb40ed3e Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 25 Sep 2006 21:58:32 +0000 Subject: Mini security audit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5333 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_check.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_check.cpp') 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); } -- cgit v1.3.1-10-gc9f91