vim-patch:8.2.2438: out of bounds compiler warning

Problem:    Out of bounds compiler warning.
Solution:   Increase the size of uf_name.
6a12e3342d

Do not set size of uf_name to avoid compiler warnings.
Port only the comments.
This commit is contained in:
Jan Edmund Lazo
2021-03-08 23:29:30 -05:00
parent effd234960
commit 7da8056607

View File

@@ -341,8 +341,9 @@ struct ufunc {
///< used for s: variables
int uf_refcount; ///< reference count, see func_name_refcount()
funccall_T *uf_scoped; ///< l: local variables for closure
char_u uf_name[]; ///< Name of function; can start with <SNR>123_
///< (<SNR> is K_SPECIAL KS_EXTRA KE_SNR)
char_u uf_name[]; ///< Name of function (actual size equals name);
///< can start with <SNR>123_
///< (<SNR> is K_SPECIAL KS_EXTRA KE_SNR)
};
struct partial_S {