aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/helpers.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-12-09 21:09:22 -0500
committerGitHub <noreply@github.com>2021-12-09 21:09:22 -0500
commit0cf546508d3bb3f51fc1d440ce5bd798edd70e82 (patch)
tree52383f48e92a9e8e673347b0e29a3dd1a627d745 /src/nvim/api/private/helpers.c
parent27648ee21803aabfced13b55b36671c4cf726703 (diff)
parent05f9f63f2478841f9fa6261c68663797fa9d43f6 (diff)
downloadrneovim-0cf546508d3bb3f51fc1d440ce5bd798edd70e82.tar.gz
rneovim-0cf546508d3bb3f51fc1d440ce5bd798edd70e82.tar.bz2
rneovim-0cf546508d3bb3f51fc1d440ce5bd798edd70e82.zip
Merge pull request #16547 from pekdon/sunos
Portability improvements, first steps at getting neovim on x86_64 SunOS
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r--src/nvim/api/private/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c
index d470def277..9b407eab8b 100644
--- a/src/nvim/api/private/helpers.c
+++ b/src/nvim/api/private/helpers.c
@@ -513,7 +513,7 @@ String cbuf_to_string(const char *buf, size_t size)
String cstrn_to_string(const char *str, size_t maxsize)
FUNC_ATTR_NONNULL_ALL
{
- return cbuf_to_string(str, strnlen(str, maxsize));
+ return cbuf_to_string(str, STRNLEN(str, maxsize));
}
/// Creates a String using the given C string. Unlike