aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-06-11 19:21:50 +0200
committerGitHub <noreply@github.com>2024-06-11 19:21:50 +0200
commit39d8651283c0458c20b755d2140c8a3cb7b581c5 (patch)
treee023eb5f914c1928bc885093db9fd6d952c65d7d /src/nvim/diff.c
parentc37695a5d5f2e8914fff86f3581bed70b4c85d3c (diff)
parentbbd2f340a2895ed59785f952b2585e6590602cad (diff)
downloadrneovim-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/diff.c')
-rw-r--r--src/nvim/diff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index e24c39e60c..750f0c3525 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -1273,10 +1273,10 @@ void ex_diffpatch(exarg_T *eap)
// Delete any .orig or .rej file created.
STRCPY(buf, tmp_new);
- STRCAT(buf, ".orig");
+ strcat(buf, ".orig");
os_remove(buf);
STRCPY(buf, tmp_new);
- STRCAT(buf, ".rej");
+ strcat(buf, ".rej");
os_remove(buf);
// Only continue if the output file was created.
@@ -1288,7 +1288,7 @@ void ex_diffpatch(exarg_T *eap)
} else {
if (curbuf->b_fname != NULL) {
newname = xstrnsave(curbuf->b_fname, strlen(curbuf->b_fname) + 4);
- STRCAT(newname, ".new");
+ strcat(newname, ".new");
}
// don't use a new tab page, each tab page has its own diffs