Commit 8bafadab authored by vasil's avatar vasil

branches/zip:

Fix off-by-one error in ut_raw_to_hex().
parent 36e31717
......@@ -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--;
}
......
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