The AttributeIterator was returning the size of the attribute data rather than

the length of the attribute name in GetNext() for attributes that are actual
inodes. Found by Robert Szeleney, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21674 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-07-20 10:45:04 +00:00
parent 9a766e16a7
commit 85b65f7585
1 changed files with 1 additions and 1 deletions

View File

@ -2536,7 +2536,7 @@ AttributeIterator::GetNext(char *name, size_t *_length, uint32 *_type,
Inode *attribute;
if ((status = vnode.Get(&attribute)) == B_OK) {
*_type = attribute->Type();
*_length = attribute->Size();
*_length = length;
*_id = id;
}