From f44ccbe7567dd8022d81ccb9996b1fabb945f950 Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 14 May 2016 11:56:14 -0400 Subject: [PATCH] fixed serialisation bug --- libretroshare/src/services/p3gxscircles.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libretroshare/src/services/p3gxscircles.cc b/libretroshare/src/services/p3gxscircles.cc index 95d207f4e..46cf2c777 100644 --- a/libretroshare/src/services/p3gxscircles.cc +++ b/libretroshare/src/services/p3gxscircles.cc @@ -1877,13 +1877,11 @@ bool p3GxsCircles::pushCircleMembershipRequest(const RsGxsId& own_gxsid,const Rs s->time_out = 0 ; // means never s->subscription_type = RsGxsCircleSubscriptionRequestItem::SUBSCRIPTION_REQUEST_SUBSCRIBE ; - // Serialise it into a base64 string - RsTemporaryMemory tmpmem(circle_id.serial_size() + own_gxsid.serial_size()) ; uint32_t off = 0 ; circle_id.serialise(tmpmem,tmpmem.size(),off) ; - own_gxsid.serialise(tmpmem+off,tmpmem.size(),off) ; + own_gxsid.serialise(tmpmem,tmpmem.size(),off) ; s->meta.mGroupId = RsGxsGroupId(circle_id) ; s->meta.mMsgId.clear();