Cast XMALLOC

This commit is contained in:
Eric Blankenhorn
2019-11-27 14:47:48 -06:00
parent 806db8096c
commit 1026c4359d

View File

@ -26158,7 +26158,8 @@ int wolfSSL_BIO_printf(WOLFSSL_BIO* bio, const char* format, ...)
count = vsnprintf(NULL, 0, format, args);
if (count >= 0)
{
pt = XMALLOC(count + 1, bio->heap, DYNAMIC_TYPE_TMP_BUFFER);
pt = (char*)XMALLOC(count + 1, bio->heap,
DYNAMIC_TYPE_TMP_BUFFER);
if (pt != NULL)
{
count = vsnprintf(pt, count + 1, format, copy);