Fix maxavro build failure

This commit is contained in:
Markus Mäkelä
2019-05-29 10:57:38 +03:00
parent 2ddc20cf9e
commit 32769ddfb0

View File

@ -146,7 +146,7 @@ char* maxavro_read_string(MAXAVRO_FILE* file, size_t* size)
{
if (file->buffer_ptr + len < file->buffer_end)
{
key = MXS_MALLOC(len + 1);
key = (char*)MXS_MALLOC(len + 1);
if (key)
{
memcpy(key, file->buffer_ptr, len);