mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 06:18:16 +00:00
Replace vim_strncpy calls: eval.c
This commit is contained in:

committed by
Justin M. Keyes

parent
004b45d6f5
commit
1e1750fdce
@@ -5875,7 +5875,7 @@ dictitem_T *dict_find(dict_T *d, char_u *key, int len)
|
||||
tofree = akey = vim_strnsave(key, len);
|
||||
} else {
|
||||
/* Avoid a malloc/free by using buf[]. */
|
||||
vim_strncpy(buf, key, len);
|
||||
STRLCPY(buf, key, len + 1);
|
||||
akey = buf;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user