Skip to content

Commit

Permalink
Replaced deprecated lz4 function call
Browse files Browse the repository at this point in the history
  • Loading branch information
racko authored and dirk-thomas committed Oct 25, 2017
1 parent 3e71a45 commit a31ddd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utilities/roslz4/src/lz4s.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ int bufferToOutput(roslz4_stream *str) {
state->buffer_offset, str->output_left);

// Shrink output by 1 to detect if data is not compressible
uint32_t comp_size = LZ4_compress_limitedOutput(state->buffer,
str->output_next + 4,
(int) state->buffer_offset,
(int) uncomp_size - 1);
uint32_t comp_size = LZ4_compress_default(state->buffer,
str->output_next + 4,
(int) state->buffer_offset,
(int) uncomp_size - 1);
uint32_t wrote;
if (comp_size > 0) {
DEBUG("bufferToOutput() Compressed to %i bytes\n", comp_size);
Expand Down

0 comments on commit a31ddd0

Please sign in to comment.