Fix build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36179 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -171,6 +171,7 @@ fs_read_attrib_dir(fs_volume *_vol, fs_vnode *_node, void *_cookie, struct diren
|
|||||||
{
|
{
|
||||||
nspace *ns = (nspace *)_vol->private_volume;
|
nspace *ns = (nspace *)_vol->private_volume;
|
||||||
vnode *node = (vnode *)_node->private_node;
|
vnode *node = (vnode *)_node->private_node;
|
||||||
|
char *name = NULL;
|
||||||
attrdircookie *cookie = (attrdircookie *)_cookie;
|
attrdircookie *cookie = (attrdircookie *)_cookie;
|
||||||
uint32 numEntries = 0;
|
uint32 numEntries = 0;
|
||||||
status_t result = B_NO_ERROR;
|
status_t result = B_NO_ERROR;
|
||||||
@@ -190,7 +191,7 @@ fs_read_attrib_dir(fs_volume *_vol, fs_vnode *_node, void *_cookie, struct diren
|
|||||||
if (attr->name_length == 0)
|
if (attr->name_length == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
char *name = ntfs_attr_name_get((const ntfschar *)(((char *)attr)
|
name = ntfs_attr_name_get((const ntfschar *)(((char *)attr)
|
||||||
+ attr->name_offset), attr->name_length);
|
+ attr->name_offset), attr->name_length);
|
||||||
dprintf("found AT_DATA '%s'\n", name);
|
dprintf("found AT_DATA '%s'\n", name);
|
||||||
bufsize = MIN(bufsize, sizeof(struct dirent) + strlen(name) + 1);
|
bufsize = MIN(bufsize, sizeof(struct dirent) + strlen(name) + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user