emile - use newer lz4 api instead of deprecated one

This commit is contained in:
Carsten Haitzler 2019-08-07 11:44:05 +01:00
parent 98e80725a3
commit eea0e92c2c
1 changed files with 3 additions and 2 deletions

View File

@ -106,10 +106,11 @@ emile_expand(const Eina_Binbuf *in, Eina_Binbuf *out, Emile_Compressor_Type t)
{
int ret;
ret = LZ4_decompress_fast((const char *)eina_binbuf_string_get(in),
ret = LZ4_decompress_safe((const char *)eina_binbuf_string_get(in),
(char *)eina_binbuf_string_get(out),
eina_binbuf_length_get(in),
eina_binbuf_length_get(out));
if ((unsigned int)ret != eina_binbuf_length_get(in))
if ((unsigned int)ret != eina_binbuf_length_get(out))
return EINA_FALSE;
break;
}