From 3a07ad674e22025daf62886e462cd11d1a26e14a Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Fri, 9 Oct 2009 15:07:39 +0200 Subject: [PATCH] Fix some comments --- bacula/src/filed/xattr.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bacula/src/filed/xattr.c b/bacula/src/filed/xattr.c index bc750a9e00..82047af18d 100644 --- a/bacula/src/filed/xattr.c +++ b/bacula/src/filed/xattr.c @@ -711,6 +711,11 @@ static bxattr_exit_code bsd_build_xattr_streams(JCR *jcr, FF_PKT *ff_pkt) */ 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)); @@ -727,8 +732,7 @@ static bxattr_exit_code bsd_build_xattr_streams(JCR *jcr, FF_PKT *ff_pkt) } /* - * 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); -- 2.39.5