check length of b.bufs (fix #2)