mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 20:29:57 -04:00
fix: EncodePrivateSyscap input null point should return true.
Signed-off-by: yudechen <chenyude@huawei.com> Change-Id: I2ebf3fec0fd08a30763355f86ac7e35215016b61
This commit is contained in:
+2
-2
@@ -275,8 +275,8 @@ int32_t CreatePCID(char *inputFile, char *outDirPath)
|
||||
for (i = 0; i < privateCapSize; i++) {
|
||||
jsonArrayItem = cJSON_GetArrayItem(jsonPriSyscapObj, i);
|
||||
priSyscapStr = strchr(jsonArrayItem->valuestring, '.') + 1;
|
||||
nRet = strcat_s(priSyscapHead, PRIVATE_SYSCAP_SIZE - 1, priSyscapStr);
|
||||
nRet += strcat_s(priSyscapHead, PRIVATE_SYSCAP_SIZE - 1, ",");
|
||||
nRet = strcat_s(priSyscapHead, allPriSyscapStrLen + 1, priSyscapStr);
|
||||
nRet += strcat_s(priSyscapHead, allPriSyscapStrLen + 1, ",");
|
||||
if (nRet != EOK) {
|
||||
PRINT_ERR("strcat_s \"pri\" string is failed\n");
|
||||
ret = -1;
|
||||
|
||||
Reference in New Issue
Block a user