Fixed off-by-one error with filling vector from receive buffer.