diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-06-11 19:21:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 19:21:50 +0200 |
commit | 39d8651283c0458c20b755d2140c8a3cb7b581c5 (patch) | |
tree | e023eb5f914c1928bc885093db9fd6d952c65d7d /src/nvim/file_search.c | |
parent | c37695a5d5f2e8914fff86f3581bed70b4c85d3c (diff) | |
parent | bbd2f340a2895ed59785f952b2585e6590602cad (diff) | |
download | rneovim-39d8651283c0458c20b755d2140c8a3cb7b581c5.tar.gz rneovim-39d8651283c0458c20b755d2140c8a3cb7b581c5.tar.bz2 rneovim-39d8651283c0458c20b755d2140c8a3cb7b581c5.zip |
Merge pull request #29278 from bfredl/strcat
refactor(memory): use builtin strcat() instead of STRCAT()
Diffstat (limited to 'src/nvim/file_search.c')
-rw-r--r-- | src/nvim/file_search.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c index ef936abab5..50031eedee 100644 --- a/src/nvim/file_search.c +++ b/src/nvim/file_search.c @@ -451,7 +451,7 @@ void *vim_findfile_init(char *path, char *filename, char *stopdirs, int level, i STRCPY(buf, ff_expand_buffer); STRCPY(buf + eb_len, search_ctx->ffsc_fix_path); if (os_isdir(buf)) { - STRCAT(ff_expand_buffer, search_ctx->ffsc_fix_path); + strcat(ff_expand_buffer, search_ctx->ffsc_fix_path); add_pathsep(ff_expand_buffer); } else { char *p = path_tail(search_ctx->ffsc_fix_path); @@ -479,7 +479,7 @@ void *vim_findfile_init(char *path, char *filename, char *stopdirs, int level, i + strlen(search_ctx->ffsc_fix_path + len) + 1); STRCPY(temp, search_ctx->ffsc_fix_path + len); - STRCAT(temp, search_ctx->ffsc_wc_path); + strcat(temp, search_ctx->ffsc_wc_path); xfree(search_ctx->ffsc_wc_path); xfree(wc_path); search_ctx->ffsc_wc_path = temp; @@ -681,7 +681,7 @@ char *vim_findfile(void *search_ctx_arg) ff_free_stack_element(stackp); goto fail; } - STRCAT(file_path, stackp->ffs_fix_path); + strcat(file_path, stackp->ffs_fix_path); if (!add_pathsep(file_path)) { ff_free_stack_element(stackp); goto fail; @@ -781,7 +781,7 @@ char *vim_findfile(void *search_ctx_arg) ff_free_stack_element(stackp); goto fail; } - STRCAT(file_path, search_ctx->ffsc_file_to_search); + strcat(file_path, search_ctx->ffsc_file_to_search); // Try without extra suffix and then with suffixes // from 'suffixesadd'. @@ -922,7 +922,7 @@ char *vim_findfile(void *search_ctx_arg) if (!add_pathsep(file_path)) { goto fail; } - STRCAT(file_path, search_ctx->ffsc_fix_path); + strcat(file_path, search_ctx->ffsc_fix_path); // create a new stack entry sptr = ff_create_stack_element(file_path, |