mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 10:21:25 -04:00
update src/create_pcid.c.
Signed-off-by: Mr.zhao <zhaohang44@huawei.com>
This commit is contained in:
+1
-1
@@ -359,7 +359,7 @@ int32_t GetPriSyscap(PCIDMain *pcidMain, cJSON *sysCapObject, size_t contextBufL
|
||||
size_t currentLen = tempPriSyscapStr - priSyscapStr;
|
||||
if (currentLen >= SINGLE_SYSCAP_LEN - 1) {
|
||||
printf("Syscap name exceeds maximum length\n");
|
||||
return GetPriSyscapResult(capVectorPtr, -1);
|
||||
return -1;
|
||||
}
|
||||
if (*ptrPrivateSyscap == ',') {
|
||||
*tempPriSyscapStr = '\0';
|
||||
|
||||
Reference in New Issue
Block a user