update src/create_pcid.c.

Signed-off-by: Mr.zhao <zhaohang44@huawei.com>
This commit is contained in:
Mr.zhao
2025-04-03 09:06:40 +00:00
committed by Gitee
parent 72833b7fda
commit 844ed3aaaf
+1 -1
View File
@@ -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';