fixup_cursor_slow: always stop at terminal block
commita665b4bb71ecbb25bbeccdb728a19cb4808f30cf
authorPetr Tesarik <petr@tesarici.cz>
Tue, 13 Nov 2012 22:25:39 +0000 (13 23:25 +0100)
committerPetr Tesarik <petr@tesarici.cz>
Tue, 13 Nov 2012 22:25:39 +0000 (13 23:25 +0100)
tree46dd750f8d27cce870d527cd0e196f9776a4c089
parent577b06cd787ece199c64be8aed40cdf852f91985
fixup_cursor_slow: always stop at terminal block

It is necessary to add the check for terminal block explicitly in case
the file length is exactly HED_MAX_OFF+1, because then the terminal
block is zero-sized and the cursor would wrap around to file beginning.
libhed/file.c