[cvslog] [CVS] Module eggdrop1.8: Change committed

cvs at eggheads.org cvs at eggheads.org
Fri Nov 5 10:18:12 CST 2010


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.8
Commit time: 2010-11-05 16:18:12 UTC
Committer  : Rumen Stoyanov <pseudo at egg6.net>

Modified files:
     THANKS doc/Changes1.8 src/patch.h src/mod/channels.mod/udefchan.c

Log message:

Fixed getudef() to return intptr_t instead of int to prevent crashes on 64-bit systems.

---------------------- diff included ----------------------
Index: eggdrop1.8/THANKS
diff -u eggdrop1.8/THANKS:1.7 eggdrop1.8/THANKS:1.8
--- eggdrop1.8/THANKS:1.7	Sun Oct 31 08:40:38 2010
+++ eggdrop1.8/THANKS	Fri Nov  5 10:18:01 2010
@@ -1,4 +1,4 @@
-$Id: THANKS,v 1.7 2010/10/31 14:40:38 pseudo Exp $:
+$Id: THANKS,v 1.8 2010/11/05 16:18:01 pseudo Exp $:
 
 Eggdrop Developers and Contributors
 Last revised: October 25, 2010
@@ -277,6 +277,7 @@
 imoq
 IpAddress
 islandic
+izy`
 \-\itman
                J. Lehto
 James
Index: eggdrop1.8/doc/Changes1.8
diff -u eggdrop1.8/doc/Changes1.8:1.35 eggdrop1.8/doc/Changes1.8:1.36
--- eggdrop1.8/doc/Changes1.8:1.35	Thu Nov  4 11:53:55 2010
+++ eggdrop1.8/doc/Changes1.8	Fri Nov  5 10:18:01 2010
@@ -1,4 +1,4 @@
-$Id: Changes1.8,v 1.35 2010/11/04 17:53:55 thommey Exp $
+$Id: Changes1.8,v 1.36 2010/11/05 16:18:01 pseudo Exp $
 
 Eggdrop Changes (since version 1.8.0)
 
@@ -6,6 +6,10 @@
 
 1.8.0 (CVS):
 
+  - Fixed getudef() to return intptr_t instead of int to prevent crashes on
+    64-bit systems.
+    Found by: izy` / Patch by: pseudo
+
   - Fixed a bug in (u)timers which could lead to invalid memory access.
     Found by: dr1 / Patch by: thommey
 
Index: eggdrop1.8/src/mod/channels.mod/udefchan.c
diff -u eggdrop1.8/src/mod/channels.mod/udefchan.c:1.1.1.1 eggdrop1.8/src/mod/channels.mod/udefchan.c:1.2
--- eggdrop1.8/src/mod/channels.mod/udefchan.c:1.1.1.1	Mon Jul 26 15:11:06 2010
+++ eggdrop1.8/src/mod/channels.mod/udefchan.c	Fri Nov  5 10:18:02 2010
@@ -2,7 +2,7 @@
  * udefchan.c -- part of channels.mod
  *   user definable channel flags/settings
  *
- * $Id: udefchan.c,v 1.1.1.1 2010/07/26 21:11:06 simple Exp $
+ * $Id: udefchan.c,v 1.2 2010/11/05 16:18:02 pseudo Exp $
  */
 /*
  * Copyright (C) 1999 - 2010 Eggheads Development Team
@@ -49,7 +49,7 @@
 
 static intptr_t getudef(struct udef_chans *ul, char *name)
 {
-  int val = 0;
+  intptr_t val = 0;
 
   for (; ul; ul = ul->next)
     if (!egg_strcasecmp(ul->chan, name)) {
Index: eggdrop1.8/src/patch.h
diff -u eggdrop1.8/src/patch.h:1.24 eggdrop1.8/src/patch.h:1.25
--- eggdrop1.8/src/patch.h:1.24	Thu Nov  4 11:54:05 2010
+++ eggdrop1.8/src/patch.h	Fri Nov  5 10:18:02 2010
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.24 2010/11/04 17:54:05 thommey Exp $
+ * $Id: patch.h,v 1.25 2010/11/05 16:18:02 pseudo Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1288651016");            /* current unixtime */
+patch("1288971899");            /* current unixtime */
 /*
  *
  *
  */
-patch("timerscount");
+patch("getudef64");
 /*
  *
  *
----------------------- End of diff -----------------------


More information about the Changes mailing list