[eggheads-patches] PATCH: supl.patch

Peter 'Rattacresh' Backes rtc at rhrk.uni-kl.de
Fri Oct 22 14:26:39 CST 1999


Fixes the SEGV causing xtra tcl set/getuser typo (one '4' instead of 
a '5') I made and the LASTON bug too 'coz it was fun.


-- Peter 'Rattacresh' Backes, rtc at rhrk.uni-kl.de

-------------- next part --------------
diff -urN eggdrop1.3.29/doc/UPDATES1.3 eggdrop1.3.29+supl/doc/UPDATES1.3
--- eggdrop1.3.29/doc/UPDATES1.3	Fri Oct 22 16:25:11 1999
+++ eggdrop1.3.29+supl/doc/UPDATES1.3	Fri Oct 22 16:31:50 1999
@@ -4,6 +4,7 @@
 
 1.3.29
 Foundby   Fixedby   What....
+          rtc       laston_tcl_set didn't check the arg count correctly.
 dw	  Fabian    help_subst had broken columnated sections handling
 Michael   Fabian    small error in reset(exempts|invites) macro
 	  Fabian    removed newline from "msg already queued" message
diff -urN eggdrop1.3.29/src/userent.c eggdrop1.3.29+supl/src/userent.c
--- eggdrop1.3.29/src/userent.c	Fri Oct 22 16:25:15 1999
+++ eggdrop1.3.29+supl/src/userent.c	Fri Oct 22 16:30:54 1999
@@ -405,8 +405,8 @@
   struct laston_info *li;
   struct chanuserrec *cr;
 
-  BADARGS(5, 6, " handle LASTON time ?place?");
-  if (argc == 5) {
+  BADARGS(4, 5, " handle LASTON time ?place?");
+  if (argc == 4) {
     li = user_malloc(sizeof(struct laston_info));
 
     li->lastonplace = user_malloc(strlen(argv[4]) + 1);
@@ -741,7 +741,7 @@
   strncpy(xk->key, argv[3], l);
   xk->key[l] = 0;
 
-  if (argc == 4) {
+  if (argc == 5) {
     int k = strlen(argv[4]);
     if (k > 500 - l)
       k = 500 - l;


More information about the Patches mailing list