mirror of
https://github.com/neovim/neovim.git
synced 2026-05-25 22:38:29 +00:00
Problem: evalvars_init() copies each vimvar's name into di_key at
startup and runtime-checks that the name fits in
DICTITEM16_KEY_LEN, even though all names are known at
compile time.
Solution: Embed the name in di_key via the VV_NAME macro so the
initialization happens at compile time. Drop the
runtime length check and the STRCPY loop (John Marriott).
closes: vim/vim#20185
1b65cfbac5
Co-authored-by: John Marriott <basilisk@internode.on.net>