Adjust hed_cursor_chunk_len() for max-sized blocks
commit60494aff6d1661f448317cb8a4b3945b19b9b4c2
authorPetr Tesarik <petr@tesarici.cz>
Thu, 17 May 2018 19:32:00 +0000 (17 21:32 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Thu, 17 May 2018 19:32:00 +0000 (17 21:32 +0200)
treef2482e6f941303c6ff0d506a8b75f002f1af32f8
parente5df3638d79c51c464d89e7c26d45d0c615af1ff
Adjust hed_cursor_chunk_len() for max-sized blocks

If the cursor is at the beginning of a maximum-sized block,
hed_cursor_chunk_len() returns 0. Compare against the maximum block
offset instead, but also add a check for empty blocks so that
hed_cursor_chunk_len() still return zero in that case.

Signed-off-by: Petr Tesarik <petr@tesarici.cz>
libhed/file.h