Commit f0e3f1f3 authored by vasil's avatar vasil

branches/zip:

Bugfix: In row_raw_format() - fix the return value when printing in
hex; do not forget to count the 2 extra characters "0x" that we wrote
at the beginning of the output.
parent 1482a2d2
...@@ -996,7 +996,8 @@ row_raw_format( ...@@ -996,7 +996,8 @@ row_raw_format(
memcpy(buf, "0x", 2); memcpy(buf, "0x", 2);
buf += 2; buf += 2;
buf_size -= 2; buf_size -= 2;
ret = ut_raw_to_hex(data, data_len, buf, buf_size); ret = 2 + ut_raw_to_hex(data, data_len,
buf, buf_size);
} else { } else {
buf[0] = '\0'; buf[0] = '\0';
......
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