aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorClaes Nästén <pekdon@gmail.com>2021-12-06 07:49:15 +0100
committerClaes Nästén <pekdon@gmail.com>2021-12-06 17:34:26 +0100
commit8f1fdbc54a873abc7375c785b2b6ee5440910de2 (patch)
tree3d2d70542b1b87a48d56252c25d6c0b15db83b41 /src/nvim/message.c
parent8fdf1b265d982b80bfa8e6d98374514ece20a03e (diff)
downloadrneovim-8f1fdbc54a873abc7375c785b2b6ee5440910de2.tar.gz
rneovim-8f1fdbc54a873abc7375c785b2b6ee5440910de2.tar.bz2
rneovim-8f1fdbc54a873abc7375c785b2b6ee5440910de2.zip
fix: add STRNLEN compatability macro
Older SunOS systems come without strnlen, add STRNLEN macro in line with the other str* compat macros.
Diffstat (limited to 'src/nvim/message.c')
-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 6fcd4cef8a..d698cfbeda 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -2056,7 +2056,7 @@ static void msg_puts_display(const char_u *str, int maxlen, int attr, int recurs
msg_ext_last_attr = attr;
}
// Concat pieces with the same highlight
- size_t len = strnlen((char *)str, maxlen); // -V781
+ size_t len = STRNLEN(str, maxlen); // -V781
ga_concat_len(&msg_ext_last_chunk, (char *)str, len);
msg_ext_cur_len += len;
return;