From 7cc96f2b1c3efe3efad3fdb298ea2aa3527966de Mon Sep 17 00:00:00 2001 From: special Date: Wed, 1 Nov 2006 17:01:32 +0000 Subject: Fixed a little overflow, noticed by satmd git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5621 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3