Skip to content

Commit

Permalink
Use actual compressed length
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
  • Loading branch information
phprus authored and Dead2 committed May 20, 2024
1 parent 80c541b commit 4a99dd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_dict.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ TEST(dictionary, basic) {
err = PREFIX(deflateEnd)(&c_stream);
EXPECT_EQ(err, Z_OK);

compr_len = (z_size_t)c_stream.total_out;

strcpy((char*)uncompr, "garbage garbage garbage");

d_stream.next_in = compr;
Expand Down

0 comments on commit 4a99dd0

Please sign in to comment.