geany/geany — comment on commit ea51c487d3f1eb0baaed021249b39f775ed6992c
File: src/document.c line 2256
By b4n:

If I can get my brain to work correctly, then without the +1 if the right thing since there's no termination byte or alike. And no, there shouldn't be any terminating EOF, 0 or whatever, MIO takes care of dealing with the length and act appropriately. So AFAICT, this is just fine :)