Fix buffer pointer mismatch.