update the remain_len field for the buffer. This really fixes ticket #2532. This commit was SVN r23706. The following SVN revision numbers were found above: r23649 --> open-mpi/ompi@f42c2a737f