0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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:
Bram Moolenaar
2020-07-23 14:39:47 +02:00
parent 63be3d4ba0
commit 5a67c37a55
2 changed files with 4 additions and 2 deletions

View File

@@ -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;
}