mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
* Bad loading by TlvString - fixed.
* Enabled extra debugging in rstlvtypes as extra check git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1622 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6842115258
commit
3b3c7c7ba4
@ -447,7 +447,7 @@ bool GetTlvString(void *data, uint32_t size, uint32_t *offset,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *strdata = (char *) right_shift_void_pointer(tlvstart, 4);
|
char *strdata = (char *) right_shift_void_pointer(tlvstart, TLV_HEADER_SIZE);
|
||||||
uint16_t strsize = tlvsize - TLV_HEADER_SIZE; /* remove the header */
|
uint16_t strsize = tlvsize - TLV_HEADER_SIZE; /* remove the header */
|
||||||
in = std::string(strdata, strsize);
|
in = std::string(strdata, strsize);
|
||||||
|
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#define TLV_DEBUG 1
|
||||||
|
|
||||||
void RsTlvItem::TlvShallowClear()
|
void RsTlvItem::TlvShallowClear()
|
||||||
{
|
{
|
||||||
TlvClear(); /* unless overloaded! */
|
TlvClear(); /* unless overloaded! */
|
||||||
|
Loading…
Reference in New Issue
Block a user