diff options
-rw-r--r-- | src/users.cpp | 2 |
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; } |