From af56f1349ecbac13ac59606c12b14da24db00628 Mon Sep 17 00:00:00 2001 From: wangkai Date: Sun, 25 Sep 2022 16:28:36 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20c0270d7=20from=20https://gitee.com/wang?= =?UTF-8?q?kai0102/notification=5Fdistributed=5Fnotification=5Fservice/pul?= =?UTF-8?q?ls/598=20blob=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangkai --- services/ans/test/unittest/mock/blob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ans/test/unittest/mock/blob.cpp b/services/ans/test/unittest/mock/blob.cpp index 540888d0f..31b20ed2d 100644 --- a/services/ans/test/unittest/mock/blob.cpp +++ b/services/ans/test/unittest/mock/blob.cpp @@ -172,7 +172,7 @@ Blob *Blob::Unmarshalling(Parcel &parcel) } /* write blob size and data to memory buffer. return error when bufferLeftSize not enough. */ -bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int &bufferLeftSize) const +bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int bufferLeftSize) const { if (cursorPtr == nullptr || bufferLeftSize < static_cast(blob_.size() + sizeof(int))) { return false; -- Gitee