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:
@@ -152,8 +152,7 @@ int parse_debug(char *value, int nvalue, char **rv)
|
||||
if (!value)
|
||||
return 0;
|
||||
|
||||
copy = alloca(strlen(value) + 1);
|
||||
strcpy(copy, value);
|
||||
copy = LOCAL_COPY(value);
|
||||
|
||||
while ((str1 = new_next_arg(copy, ©)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user