Convert ByteBuffers to byte[] correctly.

Can't assume that the capacity == limit.

Change-Id: I4aa92345b3cdf59c2d602753e2ef6e52951a1512
1 file changed