From 5515872a2349be06014282b09eb77cf012a76172 Mon Sep 17 00:00:00 2001 From: special Date: Wed, 1 Nov 2006 17:10:15 +0000 Subject: Fixed another overflow, identical to the last one git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5622 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') 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)); } -- cgit v1.2.3