summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-01 17:01:32 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-01 17:01:32 +0000
commit7cc96f2b1c3efe3efad3fdb298ea2aa3527966de (patch)
tree590b43b8159bfe5b47c4aad81902b1317e5056de /src
parent477b0cea88332a990b603f8c07c4567d0e6c7cee (diff)
Fixed a little overflow, noticed by satmd
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5621 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 3afdb5796..695eee4cb 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1334,7 +1334,7 @@ const char* userrec::GetIPString()
/* IP addresses starting with a : on irc are a Bad Thing (tm) */
if (*buf == ':')
{
- strlcpy(&temp[1], buf, sizeof(temp));
+ strlcpy(&temp[1], buf, sizeof(temp) - 1);
*temp = '0';
return temp;
}