mirror of
https://gitee.com/openharmony/xts_hats
synced 2025-02-08 18:16:23 +00:00
fix:modify codec code check
Signed-off-by: crescenthe <sunhehe@huawei.com>
This commit is contained in:
parent
20c2e4d554
commit
5131113bf3
@ -182,12 +182,12 @@ static char *GetArrayStr(int32_t *array, int32_t arrayLen, int32_t endValue)
|
||||
HDF_LOGE("%{public}s: memset_s value failed, error code: %{public}d", __func__, ret);
|
||||
return g_arrayStr;
|
||||
}
|
||||
ret = sprintf_s(value, sizeof(value) - 1, "0x0%X, ", array[i]);
|
||||
ret = sprintf_s(value, sizeof(value), "0x0%X, ", array[i]);
|
||||
if (ret < 0) {
|
||||
HDF_LOGE("%{public}s: sprintf_s value failed, error code: %{public}d", __func__, ret);
|
||||
return g_arrayStr;
|
||||
}
|
||||
len = strlen(value);
|
||||
len = strnlen(value, ARRAY_TO_STR_LEN);
|
||||
ret = memcpy_s(g_arrayStr + totalLen, len, value, len);
|
||||
if (ret != EOK) {
|
||||
HDF_LOGE("%{public}s: memcpy_s g_arrayStr failed, error code: %{public}d", __func__, ret);
|
||||
|
Loading…
x
Reference in New Issue
Block a user