aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testing.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/testing.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/testing.c')
-rw-r--r--src/nvim/testing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testing.c b/src/nvim/testing.c
index 5483a58525..25ec8e898a 100644
--- a/src/nvim/testing.c
+++ b/src/nvim/testing.c
@@ -418,11 +418,11 @@ static int assert_equalfile(typval_T *argvars)
const int c2 = fgetc(fd2);
if (c1 == EOF) {
if (c2 != EOF) {
- STRCPY(IObuff, "first file is shorter");
+ xstrlcpy(IObuff, "first file is shorter", IOSIZE);
}
break;
} else if (c2 == EOF) {
- STRCPY(IObuff, "second file is shorter");
+ xstrlcpy(IObuff, "second file is shorter", IOSIZE);
break;
} else {
line1[lineidx] = (char)c1;