diff --git a/src/create_pcid.c b/src/create_pcid.c index a318f29..4ba2733 100644 --- a/src/create_pcid.c +++ b/src/create_pcid.c @@ -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';