summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-01 17:10:15 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-01 17:10:15 +0000
commit5515872a2349be06014282b09eb77cf012a76172 (patch)
treeca0faeeb239e6c868222eaeab0cd0f6016019702 /src
parent7cc96f2b1c3efe3efad3fdb298ea2aa3527966de (diff)
Fixed another overflow, identical to the last one
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5622 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 695eee4cb..a799c406b 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1376,7 +1376,7 @@ const char* userrec::GetIPString(char* buf)
/* 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';
strlcpy(buf, temp, sizeof(temp));
}