Fix off-by-one error in wb_stream_writer_ctrl