[svn] allocate_channel(): no need to truncate name, its only caller already does it
furthermore, truncating here causes an inconsistent channel name
This commit is contained in:
parent
fea1ad5224
commit
5b87d08a05
3 changed files with 12 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -1 +1 @@
|
|||
#define SERNO "20070909-3570"
|
||||
#define SERNO "20071027-3574"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue