提交 2e6af0ec 编写于 作者: Z zhong_ning

fix code style

Signed-off-by: Nzhong_ning <zhong_ning@hoperun.com>
上级 8be51bfb
...@@ -80,7 +80,7 @@ static enum OHOSLiteErrorCode ReadStringItem(cJSON* strItem, char** buf, size_t ...@@ -80,7 +80,7 @@ static enum OHOSLiteErrorCode ReadStringItem(cJSON* strItem, char** buf, size_t
return EC_NOMEMORY; return EC_NOMEMORY;
} }
if (strLength > 0 && memcpy_s(bufTmp, strLength, strPtr, strLength - 1) != EOK) { if (strLength > 0 && memcpy_s(bufTmp, strLength, strPtr, strLength) != EOK) {
free(bufTmp); free(bufTmp);
bufTmp = NULL; bufTmp = NULL;
return EC_FAILURE; return EC_FAILURE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册