modify for codex.

Signed-off-by: yudechen <chenyude@huawei.com>
Change-Id: Id06b50afe31eb2dcd53271b2907bb3f33946b453
This commit is contained in:
yudechen
2022-05-17 16:08:15 +08:00
parent e5a012de95
commit cb3ca3e397
6 changed files with 52 additions and 39 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ static char* getSystemCapability()
bool retBool;
int retError, priOutputLen, priCapArrayCnt, sumLen;
int i = 0;
char osOutput[128] = {};
char osOutput[SYSCAP_STR_MAX_LEN] = {};
errno_t err = EOK;
uint32_t *osCapU32 = nullptr;
char *priOutput = nullptr;
@@ -70,7 +70,7 @@ static char* getSystemCapability()
char osCapArray[OS_SYSCAP_U32_NUM][U32_TO_STR_MAX_LEN] = {};
char (*priCapArray)[SYSCAP_STR_MAX_LEN] = nullptr;
retBool = EncodeOsSyscap(osOutput);
retBool = EncodeOsSyscap(osOutput, SYSCAP_STR_MAX_LEN);
if (!retBool) {
PRINT_ERR("get encoded os syscap failed.");
return nullptr;