]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
[svn] allocate_channel(): no need to truncate name, its only caller already does it
authorjilles <redacted>
Wed, 7 Nov 2007 21:45:14 +0000 (13:45 -0800)
committerjilles <redacted>
Wed, 7 Nov 2007 21:45:14 +0000 (13:45 -0800)
furthermore, truncating here causes an inconsistent channel name

ChangeLog
include/serno.h
src/channel.c

index 066577fe3729277254ce9fa95944c638600a0987..71b85077d2b4a6e67e3ee4270a8158fc4b85678f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+jilles      2007/10/27 21:56:53 UTC    (20071027-3574)
+  Log:
+  Fix a memory leak.
+  
+
+  Changes:     Modified:
+  +1 -0                trunk/src/channel.c (File Modified) 
+
+
 jilles      2007/09/09 19:19:23 UTC    (20070909-3570)
   Log:
   Make /knock send to all channel members on +g (anyone may invite) channels.
index 6d73822703210882f05bfdfb037639c63d2b15ea..06bfb6b63f42a26b8b96ee8d0414a87ef35332ec 100644 (file)
@@ -1 +1 @@
-#define SERNO "20070909-3570"
+#define SERNO "20071027-3574"
index d6161d0d65f8bdea8130245fa24e32f284a24f96..709eb2d3aa22b3a366424abad155102badc546e4 100644 (file)
@@ -21,7 +21,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: channel.c 3574 2007-10-27 21:56:53Z jilles $
+ *  $Id: channel.c 3578 2007-11-07 21:45:14Z jilles $
  */
 
 #include "stdinc.h"
@@ -93,7 +93,7 @@ allocate_channel(const char *chname)
 {
        struct Channel *chptr;
        chptr = BlockHeapAlloc(channel_heap);
-       DupNString(chptr->chname, chname, CHANNELLEN);
+       DupString(chptr->chname, chname);
        return (chptr);
 }