mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user