0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.2438: out of bounds compiler warning

Problem:    Out of bounds compiler warning.
Solution:   Increase the size of uf_name.
This commit is contained in:
Bram Moolenaar
2021-01-31 14:46:00 +01:00
parent 4d8479b335
commit 6a12e3342d
2 changed files with 4 additions and 2 deletions

View File

@@ -1649,8 +1649,8 @@ typedef struct
char_u *uf_name_exp; // if "uf_name[]" starts with SNR the name with
// "<SNR>" as a string, otherwise NULL
char_u uf_name[1]; // name of function (actually longer); can
// start with <SNR>123_ (<SNR> is K_SPECIAL
char_u uf_name[4]; // name of function (actual size equals name);
// can start with <SNR>123_ (<SNR> is K_SPECIAL
// KS_EXTRA KE_SNR)
} ufunc_T;