Commit 6da6eb23 authored by vasil's avatar vasil

branches/zip:

Fix off-by-one error in ut_raw_to_hex().
parent 8835bdf9
...@@ -181,7 +181,7 @@ ut_raw_to_hex( ...@@ -181,7 +181,7 @@ ut_raw_to_hex(
); );
} }
if (hex_size == 2 * raw_size) { if (hex_size <= 2 * raw_size && hex_size % 2 == 0) {
hex--; hex--;
} }
......
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