From a42644198431b37c9fcad2b1ff4f98b4df16c91e Mon Sep 17 00:00:00 2001 From: Ekasit Kijsipongse Date: Wed, 24 Jun 2015 16:12:19 +0700 Subject: stripe: Fix wrong pathinfo in striped-replicated volume Change-Id: I05b3ba6757d5b786daf7cb3a64e6ac6676e9c997 BUG: 1200914 Signed-off-by: Ekasit Kijsipongse Reviewed-on: http://review.gluster.org/11375 Tested-by: Gluster Build System Reviewed-by: Niels de Vos NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Smoke: Gluster Build System Reviewed-by: Jeff Darcy --- xlators/cluster/stripe/src/stripe-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster') 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); -- cgit