mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 14:30:21 +00:00
codecheck
Signed-off-by: dengxiaoyu <dengxiaoyu6@huawei.com>
This commit is contained in:
parent
d1953f6c36
commit
4a3149bfab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user