From e0b19a6383ac43027ad17df13370e722abc265d5 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 8 Apr 2015 19:06:47 -0400 Subject: [PATCH] fixed crash --- LeaseSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LeaseSet.cpp b/LeaseSet.cpp index b2e84d23..77d11e1a 100644 --- a/LeaseSet.cpp +++ b/LeaseSet.cpp @@ -36,7 +36,7 @@ namespace data LogPrint (eLogError, "Destination for local LeaseSet doesn't exist"); return; } - m_Buffer = new uint8_t[localDestination->GetIdentity ().GetFullLen ()]; + m_Buffer = new uint8_t[MAX_LS_BUFFER_SIZE]; m_BufferLen = localDestination->GetIdentity ().ToBuffer (m_Buffer, MAX_LS_BUFFER_SIZE); memcpy (m_Buffer + m_BufferLen, localDestination->GetEncryptionPublicKey (), 256); m_BufferLen += 256;