codecheck

Signed-off-by: dengxiaoyu <dengxiaoyu6@huawei.com>
This commit is contained in:
dengxiaoyu 2024-07-26 09:25:42 +08:00
parent d1953f6c36
commit 4a3149bfab

View File

@ -235,7 +235,7 @@ int32_t Base64StrToParcel(const std::string& rawStr, Parcel& parcel)
return INVALID_PARAMETERS_ERR;
}
size_t copySize = std:min(parcelSize, maxCapacity);
size_t copySize = std::min(parcelSize, maxCapacity);
auto ret = memcpy_s((void *)parcel.GetData(), maxCapacity, &str[0], copySize);
if (ret != ERR_OK || !parcel.SetDataSize(parcelSize)) {
return INVALID_PARAMETERS_ERR;