From 42b8fc3a7ac5edf11fcd13976d52af1670ebc4fc Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Sun, 18 Nov 2018 15:41:32 -0800 Subject: [PATCH] don't truncate last 2 bytes --- llarp/dns_rectypes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llarp/dns_rectypes.cpp b/llarp/dns_rectypes.cpp index d30388878..b7a1c0c1c 100644 --- a/llarp/dns_rectypes.cpp +++ b/llarp/dns_rectypes.cpp @@ -105,7 +105,7 @@ namespace llarp type_12ptr::parse(std::vector< byte_t > bytes) { // trim last 2 bytes... probably the size - this->revname = std::string((char *)bytes.data(), bytes.size() - 2); + this->revname = std::string((char *)bytes.data(), bytes.size()); return bytes.size() ? true : false; };