Mercurial > hg > CbC > CbC_gcc
diff gcc/objc/objc-act.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/objc/objc-act.c Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/objc/objc-act.c Thu Oct 25 07:37:49 2018 +0900 @@ -1,5 +1,5 @@ /* Implement classes and message passing for Objective C. - Copyright (C) 1992-2017 Free Software Foundation, Inc. + Copyright (C) 1992-2018 Free Software Foundation, Inc. Contributed by Steve Naroff. This file is part of GCC. @@ -8003,7 +8003,7 @@ char *setter_name = (char *) alloca (length); tree ret_type, selector, arg_type, arg_name; - strcpy (setter_name, full_setter_name); + memcpy (setter_name, full_setter_name, length - 1); setter_name[length - 1] = '\0'; ret_type = build_tree_list (NULL_TREE, void_type_node); arg_type = build_tree_list (NULL_TREE, TREE_TYPE (x));