From: Marco van Wieringen Date: Fri, 9 Oct 2009 13:07:39 +0000 (+0200) Subject: Fix some comments X-Git-Tag: Release-7.0.0~2602^2~1^2~4^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a07ad674e22025daf62886e462cd11d1a26e14a;p=bacula%2Fbacula Fix some comments --- 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);