forked from aniani/vim
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:
@@ -198,11 +198,11 @@ find_exported(
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user