mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2456: Coverity warning for strcpy() into fixed size array
Problem: Coverity warning for strcpy() into fixed size array. Solution: Add a type cast to hopefully silence the bogus warning.
This commit is contained in:
@@ -403,7 +403,9 @@ register_closure(ufunc_T *fp)
|
||||
static void
|
||||
set_ufunc_name(ufunc_T *fp, char_u *name)
|
||||
{
|
||||
STRCPY(fp->uf_name, name);
|
||||
// Add a type cast to avoid a warning for an overflow, the uf_name[] array
|
||||
// actually extends beyond the struct.
|
||||
STRCPY((void *)fp->uf_name, name);
|
||||
|
||||
if (name[0] == K_SPECIAL)
|
||||
{
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2456,
|
||||
/**/
|
||||
2455,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user