From 97a4901d6c16a8628f348edb182849326c3b1f2d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 1 Jun 2012 10:32:54 +0200 Subject: s3: Same fix as 8576256, this time for fgetxattr Signed-off-by: Jeremy Allison Autobuild-User: Jeremy Allison Autobuild-Date: Sat Jun 2 02:12:31 CEST 2012 on sn-devel-104 --- source3/modules/vfs_xattr_tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index fc5c3de6e5..859e06b860 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -91,7 +91,7 @@ static ssize_t xattr_tdb_fgetxattr(struct vfs_handle_struct *handle, errno = ERANGE; return -1; } - memcpy(value, blob.data, size); + memcpy(value, blob.data, xattr_size); TALLOC_FREE(frame); return xattr_size; } -- cgit