summaryrefslogtreecommitdiff
path: root/src/lib/emile
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-07 11:44:05 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-07 11:44:05 +0100
commiteea0e92c2c7b6e342aa87088e67bba1a01452a52 (patch)
treec6310a540cbde001f60b875a676ced61287ba4a5 /src/lib/emile
parent98e80725a39e41791a05f459027a6f23487732af (diff)
emile - use newer lz4 api instead of deprecated one
Diffstat (limited to 'src/lib/emile')
-rw-r--r--src/lib/emile/emile_compress.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/emile/emile_compress.c b/src/lib/emile/emile_compress.c
index e744d3f93f..783e00b1ab 100644
--- a/src/lib/emile/emile_compress.c
+++ b/src/lib/emile/emile_compress.c
@@ -106,10 +106,11 @@ emile_expand(const Eina_Binbuf *in, Eina_Binbuf *out, Emile_Compressor_Type t)
106 { 106 {
107 int ret; 107 int ret;
108 108
109 ret = LZ4_decompress_fast((const char *)eina_binbuf_string_get(in), 109 ret = LZ4_decompress_safe((const char *)eina_binbuf_string_get(in),
110 (char *)eina_binbuf_string_get(out), 110 (char *)eina_binbuf_string_get(out),
111 eina_binbuf_length_get(in),
111 eina_binbuf_length_get(out)); 112 eina_binbuf_length_get(out));
112 if ((unsigned int)ret != eina_binbuf_length_get(in)) 113 if ((unsigned int)ret != eina_binbuf_length_get(out))
113 return EINA_FALSE; 114 return EINA_FALSE;
114 break; 115 break;
115 } 116 }