file_systems: fs_read_link() doesn't use a user buffer

introduced in hrev26728 and hrev54107.

Change-Id: I3e98d54e829bcce559c43a8ee1abe4d889c0a571
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2819
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jérôme Duval
2020-05-26 23:00:54 +00:00
committed by waddlesplash
parent d750211a65
commit f9b218aa8a
8 changed files with 16 additions and 18 deletions
@@ -1606,7 +1606,8 @@ bfs_read_link(fs_volume* _volume, fs_vnode* _node, char* buffer,
*_bufferSize = linkLength;
return user_memcpy(buffer, inode->Node().short_symlink, bytesToCopy);
memcpy(buffer, inode->Node().short_symlink, bytesToCopy);
return B_OK;
}