Cleanup: remove strcpy usage

Remove strcpy use in:

- bone_autoside_name
- BLI_string_flip_side_name
- datatoc_icon utility.
- RNA define error messages.
- RNA UI registration.
- extern/xdnd.
This commit is contained in:
Campbell Barton
2023-06-20 13:23:33 +10:00
parent 2100ebca7a
commit 69d92bd3de
9 changed files with 99 additions and 90 deletions

5
extern/xdnd/xdnd.c vendored
View File

@@ -464,8 +464,9 @@ static char *concat_string_list (char **t, int *bytes)
break;
if (!(t[n][0]))
break;
strcpy (s + l, t[n]);
l += strlen (t[n]) + 1;
int t_size = strlen (t[n]) + 1;
memcpy (s + l, t[n], t_size);
l += t_size;
}
*bytes = l;
s[l] = '\0';