Fix ipbuf size in count_users().
authorMichael Poole <mdpoole@troilus.org>
Sun, 4 Mar 2007 14:59:24 +0000 (14:59 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sun, 4 Mar 2007 14:59:24 +0000 (14:59 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1768 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/whocmds.c

index d3216b6adb1c528dde8a7e01669dca5d7ce942fc..b2d7e7a1d70a0bb614e23621acd240c2530df63b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-04  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/whocmds.c (count_users): Fix length of ipbuf.  (Spotted by
+       paulr.)
+
 2007-02-28  Michael Poole <mdpoole@troilus.org>
 
        * ircd/os_generic.c (sockaddr_from_irc): Zero out socket address
index 08e500faccd468f3217e73635a3701801e88a015..2cee53f2b48b299fc3f891d75d9c94fd25486a00 100644 (file)
@@ -287,7 +287,7 @@ count_users(char *mask)
   struct Client *acptr;
   int count = 0;
   char namebuf[USERLEN + HOSTLEN + 2];
-  char ipbuf[USERLEN + 16 + 2];
+  char ipbuf[USERLEN + SOCKIPLEN + 2];
 
   for (acptr = GlobalClientList; acptr; acptr = cli_next(acptr)) {
     if (!IsUser(acptr))