Problem: Vim9: compiler warning for buffer size.
Solution: Change the offset from 10 to 15. (Dominique Pellé, closes #6518)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1275,
/**/
1274,
/**/
char_u *funcname;
// it could be a user function.
- if (STRLEN(name) < sizeof(buffer) - 10)
+ if (STRLEN(name) < sizeof(buffer) - 15)
funcname = buffer;
else
{
- funcname = alloc(STRLEN(name) + 10);
+ funcname = alloc(STRLEN(name) + 15);
if (funcname == NULL)
return -1;
}