summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorEkasit Kijsipongse <ekasit.kijsipongse@nectec.or.th>2015-06-24 16:12:19 +0700
committerJeff Darcy <jdarcy@redhat.com>2016-08-16 12:47:04 -0700
commita42644198431b37c9fcad2b1ff4f98b4df16c91e (patch)
tree4eb2a15b055642341850123d22f1e0c8da7ef9ac /xlators/cluster
parent79e006b31a1e6d71f1af02176f8e8acaed7f8cd2 (diff)
stripe: Fix wrong pathinfo in striped-replicated volume
Change-Id: I05b3ba6757d5b786daf7cb3a64e6ac6676e9c997 BUG: 1200914 Signed-off-by: Ekasit Kijsipongse <ekasit.kijsipongse@nectec.or.th> Reviewed-on: http://review.gluster.org/11375 Tested-by: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/stripe/src/stripe-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/stripe/src/stripe-helpers.c b/xlators/cluster/stripe/src/stripe-helpers.c
index 02ee6a43d7c..217f4d2b6e8 100644
--- a/xlators/cluster/stripe/src/stripe-helpers.c
+++ b/xlators/cluster/stripe/src/stripe-helpers.c
@@ -118,7 +118,7 @@ stripe_xattr_aggregate (char *buffer, stripe_local_t *local, int32_t *total)
for (i = 0; i < local->nallocs; i++) {
xattr = local->xattr_list + i;
- len = xattr->xattr_len;
+ len = xattr->xattr_len - 1; /* length includes \0 */
if (len && xattr && xattr->xattr_value) {
memcpy (buffer, xattr->xattr_value, len);