aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-05-06 10:02:08 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-05-06 10:02:08 +0200
commite7a8908b11db404ad7e1f3ee0209ad46c6b28594 (patch)
treeb39d72f883897fa64dd707e8bc969388b8a3e469 /src
parentfe299a82a683c43d2734268a22b3e97acf8be0c7 (diff)
downloadrneovim-e7a8908b11db404ad7e1f3ee0209ad46c6b28594.tar.gz
rneovim-e7a8908b11db404ad7e1f3ee0209ad46c6b28594.tar.bz2
rneovim-e7a8908b11db404ad7e1f3ee0209ad46c6b28594.zip
PVS/V781: "maxlen" variable checked after use
False positive.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/message.c2
1 files changed, 1 insertions, 1 deletions
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;
}