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:
@@ -83,8 +83,7 @@ long hvalue;
|
||||
if (!strchr(uptr->channels, '*'))
|
||||
{
|
||||
char *channel, *ptr;
|
||||
channel = alloca(strlen(uptr->channels)+1);
|
||||
strcpy(channel, uptr->channels);
|
||||
channel = LOCAL_COPY(uptr->channels);
|
||||
while ((ptr = next_in_comma_list(channel, &channel)))
|
||||
{
|
||||
if (!*ptr)
|
||||
|
||||
Reference in New Issue
Block a user