Replace vim_strncpy calls: message.c

This commit is contained in:
Douglas Schneider
2014-06-04 20:03:35 -06:00
committed by Justin M. Keyes
parent 1e1750fdce
commit d430f039d1

View File

@@ -1838,7 +1838,8 @@ store_sb_text (
mp->sb_eol = finish;
mp->sb_msg_col = *sb_col;
mp->sb_attr = attr;
vim_strncpy(mp->sb_text, *sb_str, s - *sb_str);
memcpy(mp->sb_text, *sb_str, s - *sb_str);
mp->sb_text[s - *sb_str] = NUL;
if (last_msgchunk == NULL) {
last_msgchunk = mp;