From 5b87d08a05121f448037b71b3a759e45f8fa01c1 Mon Sep 17 00:00:00 2001 From: jilles Date: Wed, 7 Nov 2007 13:45:14 -0800 Subject: [PATCH] [svn] allocate_channel(): no need to truncate name, its only caller already does it furthermore, truncating here causes an inconsistent channel name --- ChangeLog | 9 +++++++++ include/serno.h | 2 +- src/channel.c | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 066577f..71b8507 100644 --- 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. diff --git a/include/serno.h b/include/serno.h index 6d73822..06bfb6b 100644 --- a/include/serno.h +++ b/include/serno.h @@ -1 +1 @@ -#define SERNO "20070909-3570" +#define SERNO "20071027-3574" diff --git a/src/channel.c b/src/channel.c index d6161d0..709eb2d 100644 --- a/src/channel.c +++ b/src/channel.c @@ -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); }