diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 17020f224..0f495862e 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -1322,7 +1322,7 @@ static int _SaveDerAndPem(const byte* der, int derSz, if (pemSz < 0) { return pemSz; } - pem = XMALLOC(pemSz, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER); + pem = (byte*)XMALLOC(pemSz, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER); if (pem == NULL) { return MEMORY_E; }