Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-03-04 14:55:42 UTC

Modified files:
  Tag: u2_10_12_branch
     ChangeLog ircd/whocmds.c

Log message:

Fix ipbuf size in count_users().

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.149 ircu2.10/ChangeLog:1.710.2.150
--- ircu2.10/ChangeLog:1.710.2.149      Wed Feb 28 14:37:07 2007
+++ ircu2.10/ChangeLog  Sun Mar  4 06:55:25 2007
@@ -1,3 +1,8 @@
+2007-03-04  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/whocmds.c (count_users): Fix length of ipbuf.  (Spotted by
+       paulr.)
+
 2007-02-28  Michael Poole <[EMAIL PROTECTED]>
 
        * ircd/os_generic.c (sockaddr_from_irc): Zero out socket address
Index: ircu2.10/ircd/whocmds.c
diff -u ircu2.10/ircd/whocmds.c:1.25.2.1 ircu2.10/ircd/whocmds.c:1.25.2.2
--- ircu2.10/ircd/whocmds.c:1.25.2.1    Sat Nov  4 13:35:28 2006
+++ ircu2.10/ircd/whocmds.c     Sun Mar  4 06:55:31 2007
@@ -22,7 +22,7 @@
  */
 /** @file
  * @brief Support functions for /WHO-like commands.
- * @version $Id: whocmds.c,v 1.25.2.1 2006/11/04 21:35:28 entrope Exp $
+ * @version $Id: whocmds.c,v 1.25.2.2 2007/03/04 14:55:31 entrope Exp $
  */
 #include "config.h"
 
@@ -287,7 +287,7 @@
   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))
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to