Commit d5838b35 authored by Andreas Kempe's avatar Andreas Kempe
Browse files

Fix incorrect size to z_stream malloc

parent 7a7f1997
......@@ -6,7 +6,7 @@
z_stream* pony_deflateInit(uint8_t* data, uint32_t size, uint32_t level)
{
z_stream *strm = malloc(sizeof(strm));
z_stream *strm = malloc(sizeof(z_stream));
if (!strm)
return NULL;
......@@ -57,7 +57,7 @@ out:
z_stream* pony_inflateInit(uint8_t* data, uint32_t size)
{
z_stream *strm = malloc(sizeof(strm));
z_stream *strm = malloc(sizeof(z_stream));
if (!strm)
return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment