1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

irc: fix some malloc sizes

This commit is contained in:
Sebastien Helleu
2014-02-28 11:39:24 +01:00
parent 7213fe5826
commit 6ea8c2d83c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2475,8 +2475,8 @@ irc_command_kickban (void *data, struct t_gui_buffer *buffer, int argc,
/* set ban for nick(+host) on channel */
if (strchr (pos_nick, '@'))
{
length = strlen (pos_nick) + 16;
mask = malloc (length + 1);
length = strlen (pos_nick) + 16 + 1;
mask = malloc (length);
if (mask)
{
pos = strchr (pos_nick, '!');