change EncodeOsSyscap parameters.

Signed-off-by: yudechen <chenyude@huawei.com>
Change-Id: I227b6b09b38dc300063b3e55e2929bd051429407
This commit is contained in:
yudechen
2022-05-07 09:48:44 +08:00
parent 4e285d93a7
commit 615a6137cd
5 changed files with 10 additions and 22 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ static char* getSystemCapability()
bool retBool;
int retError, priOutputLen, priCapArrayCnt, sumLen;
int i = 0;
char *osOutput = nullptr;
char osOutput[128] = {};
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);
if (!retBool) {
PRINT_ERR("get encoded os syscap failed.");
goto FREE_OSOUTPUT;