Messages in this thread Patch in this message | | | Date | Mon, 9 Oct 2006 01:31:37 +0400 | From | Alexey Dobriyan <> | Subject | [PATCH] DAC960: memmove for overlapping areas |
| |
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> ---
drivers/block/DAC960.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/block/DAC960.h +++ b/drivers/block/DAC960.h @@ -4379,8 +4379,8 @@ static inline void DAC960_P_To_PD_Transl static inline void DAC960_P_To_PD_TranslateDeviceState(void *DeviceState) { memcpy(DeviceState + 2, DeviceState + 3, 1); - memcpy(DeviceState + 4, DeviceState + 5, 2); - memcpy(DeviceState + 6, DeviceState + 8, 4); + memmove(DeviceState + 4, DeviceState + 5, 2); + memmove(DeviceState + 6, DeviceState + 8, 4); } static inline - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |