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:
@@ -1259,8 +1259,7 @@ static void add_files(char *args, char *rest)
|
||||
struct dirent *dir;
|
||||
struct stat statbuf;
|
||||
|
||||
path = alloca(strlen(rest)+1);
|
||||
strcpy(path, rest);
|
||||
path = LOCAL_COPY(rest);
|
||||
|
||||
temp = alloca(BIG_BUFFER_SIZE + 1);
|
||||
*temp = 0;
|
||||
|
||||
Reference in New Issue
Block a user