PVS/V781: suppress false positive #10516

This commit is contained in:
Ihor Antonov 2019-07-15 20:30:31 -04:00 committed by Justin M. Keyes
parent ec81cfb406
commit 0156e6b810

View File

@ -1878,8 +1878,8 @@ static void msg_puts_display(const char_u *str, int maxlen, int attr,
msg_ext_last_attr = attr;
}
// Concat pieces with the same highlight
size_t len = strnlen((char *)str, maxlen);
ga_concat_len(&msg_ext_last_chunk, (char *)str, len); // -V781
size_t len = strnlen((char *)str, maxlen); // -V781
ga_concat_len(&msg_ext_last_chunk, (char *)str, len);
msg_ext_cur_len += len;
return;
}