refactor: Replace vim_strcat() with xstrlcat().

This commit is contained in:
Justin M. Keyes
2017-01-23 14:34:47 +01:00
parent 6c467f3f7e
commit 7e799b6e91
5 changed files with 8 additions and 25 deletions

View File

@@ -6902,8 +6902,8 @@ static int highlight_list_arg(int id, int didh, int type, int iarg, char_u *sarg
for (i = 0; hl_attr_table[i] != 0; ++i) {
if (iarg & hl_attr_table[i]) {
if (buf[0] != NUL)
vim_strcat(buf, (char_u *)",", 100);
vim_strcat(buf, (char_u *)hl_name_table[i], 100);
xstrlcat((char *)buf, ",", 100);
xstrlcat((char *)buf, hl_name_table[i], 100);
iarg &= ~hl_attr_table[i]; /* don't want "inverse" */
}
}