fix: fix some code bugs.

Signed-off-by: yudechen <chenyude@huawei.com>
Change-Id: I0a1d256aabca1c34ac56b6ceaee77e6a7916d5ec
This commit is contained in:
yudechen
2022-10-26 18:49:23 +08:00
parent abd311d817
commit 48987150de
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -420,7 +420,7 @@ int32_t DecodePCID(char *inputFile, char *outDirPath)
}
char *ptrPrivateSyscap = (char *)(pcidMain + 1);
uint16_t privateSyscapLen = contextBufLen - sizeof(PCIDMain) - 1;
size_t privateSyscapLen = contextBufLen - sizeof(PCIDMain) - 1;
char priSyscapStr[SINGLE_SYSCAP_LEN] = {0};
char *tempPriSyscapStr = priSyscapStr;
char fullPriSyscapStr[SINGLE_SYSCAP_LEN] = {0};
+1 -1
View File
@@ -395,7 +395,7 @@ FREE_CONTEXT_OUT:
return ret;
}
static int SetOsSysCapBitMap(uint8_t *out, uint16_t outLen, uint16_t *index, uint16_t indexLen)
static int SetOsSysCapBitMap(uint8_t *out, uint16_t outLen, const uint16_t *index, uint16_t indexLen)
{
uint16_t sector, pos;