Correct end framebuf range check.