From e7a8908b11db404ad7e1f3ee0209ad46c6b28594 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 6 May 2019 10:02:08 +0200 Subject: PVS/V781: "maxlen" variable checked after use False positive. --- src/nvim/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/message.c b/src/nvim/message.c index 28855402f4..4c5f357451 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -1880,7 +1880,7 @@ static void msg_puts_display(const char_u *str, int maxlen, int attr, } // Concat pieces with the same highlight ga_concat_len(&msg_ext_last_chunk, (char *)str, - strnlen((char *)str, maxlen)); + strnlen((char *)str, maxlen)); // -V781 return; } -- cgit