[cvslog] (2005-08-31 02:35:24 UTC) Module eggdrop1.7: Change committed!

cvslog cvs at tsss.org
Tue Aug 30 20:35:24 CST 2005


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2005-08-31 02:35:24 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     src/main.c src/patch.h src/mod/uptime.mod/uptime.c

Log message:

* Use newsplit() instead of splitc(.., ' ') in uptime.mod for consistency.
  This also stops some valgrind bitching =P.

---------------------- diff included ----------------------
Index: eggdrop1.7/src/main.c
diff -u eggdrop1.7/src/main.c:1.22 eggdrop1.7/src/main.c:1.23
--- eggdrop1.7/src/main.c:1.22	Sun Aug 21 22:32:33 2005
+++ eggdrop1.7/src/main.c	Tue Aug 30 21:35:13 2005
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  *
- * $Id: main.c,v 1.22 2005/08/22 03:32:33 wcc Exp $
+ * $Id: main.c,v 1.23 2005/08/31 02:35:13 wcc Exp $
  */
 
 #include "main.h"
@@ -258,7 +258,7 @@
 
 static void do_arg(char *s)
 {
-  char x[1024], *z = x;
+  char x[512], *z = x;
   int i;
 
   if (s[0] == '-') {
Index: eggdrop1.7/src/mod/uptime.mod/uptime.c
diff -u eggdrop1.7/src/mod/uptime.mod/uptime.c:1.3 eggdrop1.7/src/mod/uptime.mod/uptime.c:1.4
--- eggdrop1.7/src/mod/uptime.mod/uptime.c:1.3	Thu Jan 20 19:43:42 2005
+++ eggdrop1.7/src/mod/uptime.mod/uptime.c	Tue Aug 30 21:35:14 2005
@@ -1,5 +1,5 @@
 /*
- * $Id: uptime.c,v 1.3 2005/01/21 01:43:42 wcc Exp $
+ * $Id: uptime.c,v 1.4 2005/08/31 02:35:14 wcc Exp $
  *
  * This module reports uptime information about your bot to http://uptime.eggheads.org. The
  * purpose for this is to see how your bot rates against many others (including EnergyMechs
@@ -72,7 +72,7 @@
 static int uptimesock;
 static int uptimecount;
 static unsigned long uptimeip;
-static char uptime_version[50] = "";
+static char uptime_version[48] = "";
 
 static int uptime_expmem()
 {
@@ -114,7 +114,7 @@
 int init_uptime(void)
 {
   struct sockaddr_in sai;
-  char temp[50] = "";
+  char x[64], *z = x;
 
   upPack.regnr = 0;  /* unused */
   upPack.pid = 0;    /* must set this later */
@@ -124,9 +124,9 @@
   uptimecount = 0;
   uptimeip = -1;
 
-  strncpyz(temp, ver, sizeof temp);
-  splitc(uptime_version, temp, ' ');
-  strncpyz(uptime_version, temp, sizeof uptime_version);
+  strncpyz(x, ver, sizeof x);
+  newsplit(&z);
+  strncpyz(uptime_version, z, sizeof uptime_version);
 
   if ((uptimesock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
     putlog(LOG_DEBUG, "*", "init_uptime socket returned < 0 %d", uptimesock);
Index: eggdrop1.7/src/patch.h
diff -u eggdrop1.7/src/patch.h:1.50 eggdrop1.7/src/patch.h:1.51
--- eggdrop1.7/src/patch.h:1.50	Tue Aug 30 21:15:54 2005
+++ eggdrop1.7/src/patch.h	Tue Aug 30 21:35:13 2005
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.50 2005/08/31 02:15:54 wcc Exp $
+ * $Id: patch.h,v 1.51 2005/08/31 02:35:13 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1125454637");            /* current unixtime */
+patch("1125455640");            /* current unixtime */
 /*
  *
  *
  */
-patch("macos-dns");
+patch("valgrind-bitching");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list