with two commas which later would defeat the purpose of *(strrchr(text_type, ',')) = '\0'
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6232
82007160-df01-0410-b94d-
b575c5fd34c7
if (item->number & type)
{
- strncat(text_type, item->type, sizeof(text_type) - strlen(text_type) - 2);
- text_type[sizeof(text_type) - 2] = '\0';
-
- strncat(text_type, ", ", sizeof(text_type) - strlen(text_type) - 1);
- text_type[sizeof(text_type) - 1] = '\0';
+ strlcat(text_type, item->type, sizeof(text_type));
+ strlcat(text_type, ", ", sizeof(text_type));
}
}