Fix buffer_open for continuous buffer mode.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>