mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
change EncodeOsSyscap parameters.
Signed-off-by: yudechen <chenyude@huawei.com> Change-Id: I227b6b09b38dc300063b3e55e2929bd051429407
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user