aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorii14 <59243201+ii14@users.noreply.github.com>2023-05-16 05:33:03 +0200
committerGitHub <noreply@github.com>2023-05-16 11:33:03 +0800
commitd36dd2bae8e899b40cc21603e600a5046213bc36 (patch)
treeca7689e0415f3d0d8199eb89a9578a48e069981c /src/nvim/buffer.c
parent66b7f62542de0c9910f0e701a4c51834cfea3bab (diff)
downloadrneovim-d36dd2bae8e899b40cc21603e600a5046213bc36.tar.gz
rneovim-d36dd2bae8e899b40cc21603e600a5046213bc36.tar.bz2
rneovim-d36dd2bae8e899b40cc21603e600a5046213bc36.zip
refactor: use xstrl{cpy,cat} on IObuff (#23648)
Replace usage of STR{CPY,CAT} with xstrl{cpy,cat} when using on IObuff Co-authored-by: ii14 <ii14@users.noreply.github.com>
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index b2edbf4053..082e47ed0f 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -1084,11 +1084,11 @@ char *do_bufdel(int command, char *arg, int addr_count, int start_bnr, int end_b
if (deleted == 0) {
if (command == DOBUF_UNLOAD) {
- STRCPY(IObuff, _("E515: No buffers were unloaded"));
+ xstrlcpy(IObuff, _("E515: No buffers were unloaded"), IOSIZE);
} else if (command == DOBUF_DEL) {
- STRCPY(IObuff, _("E516: No buffers were deleted"));
+ xstrlcpy(IObuff, _("E516: No buffers were deleted"), IOSIZE);
} else {
- STRCPY(IObuff, _("E517: No buffers were wiped out"));
+ xstrlcpy(IObuff, _("E517: No buffers were wiped out"), IOSIZE);
}
errormsg = IObuff;
} else if (deleted >= p_report) {