mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.1275: Vim9: compiler warning for buffer size
Problem: Vim9: compiler warning for buffer size. Solution: Change the offset from 10 to 15. (Dominique Pellé, closes #6518)
This commit is contained in:
@@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1275,
|
||||||
/**/
|
/**/
|
||||||
1274,
|
1274,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -198,11 +198,11 @@ find_exported(
|
|||||||
char_u *funcname;
|
char_u *funcname;
|
||||||
|
|
||||||
// it could be a user function.
|
// it could be a user function.
|
||||||
if (STRLEN(name) < sizeof(buffer) - 10)
|
if (STRLEN(name) < sizeof(buffer) - 15)
|
||||||
funcname = buffer;
|
funcname = buffer;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
funcname = alloc(STRLEN(name) + 10);
|
funcname = alloc(STRLEN(name) + 15);
|
||||||
if (funcname == NULL)
|
if (funcname == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user