From ca4b4dde5e2184dc8e11cacb2ecf0bc7420db279 Mon Sep 17 00:00:00 2001 From: alexandrut Date: Wed, 16 Sep 2009 19:42:00 +0000 Subject: [PATCH] hope this fix the new bug with exchange of rs version git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1658 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/serialiser/rsdiscitems.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/serialiser/rsdiscitems.cc b/libretroshare/src/serialiser/rsdiscitems.cc index cd24d231d..513f42b27 100644 --- a/libretroshare/src/serialiser/rsdiscitems.cc +++ b/libretroshare/src/serialiser/rsdiscitems.cc @@ -643,8 +643,9 @@ std::ostream &RsDiscVersion::print(std::ostream &out, uint16_t indent) uint32_t RsDiscSerialiser::sizeVersion(RsDiscVersion *item) { - uint32_t s = 8; - s += GetTlvStringSize(item->version); + uint32_t s = 8; /* header */ + s += 4; /* size in RawString() */ + s += item->version.length(); return s; }