Convert simple uses of alloca/strcpy to LOCAL_COPY.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@232 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -467,8 +467,7 @@ ChannelList *chan = NULL;
|
||||
if (!nick_isop(Nick) || get_cset_int_var(chan->csets, KICK_OPS_CSET))
|
||||
{
|
||||
char *ban, *u, *h;
|
||||
u = alloca(strlen(Nick->host)+1);
|
||||
strcpy(u, Nick->host);
|
||||
u = LOCAL_COPY(Nick->host);
|
||||
h = strchr(u, '@');
|
||||
*h++ = 0;
|
||||
ban = ban_it(Nick->nick, u, h, Nick->ip);
|
||||
|
||||
Reference in New Issue
Block a user