mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
PVS/V781: suppress false positive #10516
This commit is contained in:

committed by
Justin M. Keyes

parent
ec81cfb406
commit
0156e6b810
@@ -1878,8 +1878,8 @@ static void msg_puts_display(const char_u *str, int maxlen, int attr,
|
|||||||
msg_ext_last_attr = attr;
|
msg_ext_last_attr = attr;
|
||||||
}
|
}
|
||||||
// Concat pieces with the same highlight
|
// Concat pieces with the same highlight
|
||||||
size_t len = strnlen((char *)str, maxlen);
|
size_t len = strnlen((char *)str, maxlen); // -V781
|
||||||
ga_concat_len(&msg_ext_last_chunk, (char *)str, len); // -V781
|
ga_concat_len(&msg_ext_last_chunk, (char *)str, len);
|
||||||
msg_ext_cur_len += len;
|
msg_ext_cur_len += len;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user