mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +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);
|
tofree = akey = vim_strnsave(key, len);
|
||||||
} else {
|
} else {
|
||||||
/* Avoid a malloc/free by using buf[]. */
|
/* Avoid a malloc/free by using buf[]. */
|
||||||
vim_strncpy(buf, key, len);
|
STRLCPY(buf, key, len + 1);
|
||||||
akey = buf;
|
akey = buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user