*/
for (index = 0; index < xattr_list_len; index += xattr_list[index] + 1) {
skip_xattr = false;
+
+ /*
+ * print the current name into the buffer as its not null terminated we need to
+ * use the length encoded in the string for copying only the needed bytes.
+ */
bsnprintf(current_attrname, sizeof(current_attrname), "%*.*s",
xattr_list[index], xattr_list[index], xattr_list + (index + 1));
}
/*
- * print the current name into the buffer as its not null terminated we need to
- * use the length encoded in the string for copying only the needed bytes.
+ * Create a tupple of the current attrnamespace and attrname.
*/
bsnprintf(current_attrtuple, sizeof(current_attrtuple), "%s.%s", current_attrnamespace, current_attrname);