From d5098782e5645d39b5e92f150e187e7194ef055a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 22 Sep 2019 09:43:17 -0700 Subject: Blob substr constructor includes null terminator. --- src/unstable/blob.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unstable/blob.cpp b/src/unstable/blob.cpp index 3395fae..69ec28f 100644 --- a/src/unstable/blob.cpp +++ b/src/unstable/blob.cpp @@ -85,6 +85,7 @@ Bu::Blob::Blob( const Bu::Blob::const_iterator &iStart, pData = new char[iSize+1]; memcpy( pData, iStart.pBlob->pData+iStart.iIndex, iSize ); + pData[iSize] = 0; } Bu::Blob::~Blob() -- cgit v1.2.3