Correct buffer copy offsets.