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:
@@ -230,8 +230,7 @@ static int find_cset_variable(CSetArray *array, char *org_name, int *cnt)
|
||||
char *name = NULL;
|
||||
|
||||
len = strlen(org_name);
|
||||
name = alloca(len + 1);
|
||||
strcpy(name, org_name);
|
||||
name = LOCAL_COPY(org_name);
|
||||
|
||||
upper(name);
|
||||
var_index = 0;
|
||||
@@ -708,8 +707,7 @@ static int find_wset_variable(WSetArray *array, char *org_name, int *cnt)
|
||||
char *name = NULL;
|
||||
|
||||
len = strlen(org_name);
|
||||
name = alloca(len + 1);
|
||||
strcpy(name, org_name);
|
||||
name = LOCAL_COPY(org_name);
|
||||
|
||||
upper(name);
|
||||
var_index = 0;
|
||||
|
||||
Reference in New Issue
Block a user