Fixed buffer pointer offset when copying data.