aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/env.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-11-28 18:11:41 +0100
committerGitHub <noreply@github.com>2022-11-28 18:11:41 +0100
commitccd17543f32a892814c3d32eb5e979722b843da9 (patch)
treef4768eb7d7be52402ccd55e3e4e04aecceab3e42 /src/nvim/os/env.c
parentb2bb3973d9c7f25acfead2718d74fcf5b1e4551e (diff)
parent3b96ccf7d35be90e49029dec76344d3d92ad91dc (diff)
downloadrneovim-ccd17543f32a892814c3d32eb5e979722b843da9.tar.gz
rneovim-ccd17543f32a892814c3d32eb5e979722b843da9.tar.bz2
rneovim-ccd17543f32a892814c3d32eb5e979722b843da9.zip
Merge pull request #21200 from dundargoc/refactor/char_u/15
refactor: replace char_u with char 15 - remove STRNLEN and STRNCPY
Diffstat (limited to 'src/nvim/os/env.c')
-rw-r--r--src/nvim/os/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c
index dac3cae199..29bfbfcfdf 100644
--- a/src/nvim/os/env.c
+++ b/src/nvim/os/env.c
@@ -760,7 +760,7 @@ void expand_env_esc(char *restrict srcp, char *restrict dst, int dstlen, bool es
if (prefix != NULL
&& src - prefix_len >= srcp
- && STRNCMP(src - prefix_len, prefix, prefix_len) == 0) {
+ && strncmp(src - prefix_len, prefix, (size_t)prefix_len) == 0) {
at_start = true;
}
}