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:
@@ -798,8 +798,7 @@ BUILT_IN_KEYBINDING(input_add_character)
|
||||
{
|
||||
char *ptr = NULL;
|
||||
|
||||
ptr = alloca(strlen(&(THIS_CHAR)) + 1);
|
||||
strcpy(ptr, &(THIS_CHAR));
|
||||
ptr = LOCAL_COPY(&(THIS_CHAR));
|
||||
THIS_CHAR = key;
|
||||
NEXT_CHAR = 0;
|
||||
ADD_TO_INPUT(ptr);
|
||||
|
||||
Reference in New Issue
Block a user