Skip to content

Commit 082397a

Browse files
author
Andras Fekete
committed
Missing cast to avoid warning
1 parent 5daf5ff commit 082397a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/pkcs7.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,9 +2562,9 @@ static int wc_PKCS7_EncodeContentStream(PKCS7* pkcs7, ESD* esd, void* aes,
25622562
}
25632563
}
25642564

2565-
encContentOut = XMALLOC(BER_OCTET_LENGTH + MAX_OCTET_STR_SZ,
2565+
encContentOut = (byte *)XMALLOC(BER_OCTET_LENGTH + MAX_OCTET_STR_SZ,
25662566
heap, DYNAMIC_TYPE_PKCS7);
2567-
contentData = XMALLOC(BER_OCTET_LENGTH + padSz,
2567+
contentData = (byte *)XMALLOC(BER_OCTET_LENGTH + padSz,
25682568
heap, DYNAMIC_TYPE_PKCS7);
25692569

25702570
if (encContentOut == NULL || contentData == NULL) {

0 commit comments

Comments
 (0)