diff options
author | Tamura Dai <Tamura.Dai@dh.MitsubishiElectric.co.jp> | 2023-05-24 16:20:56 +0900 |
---|---|---|
committer | Tamura Dai <Tamura.Dai@dh.MitsubishiElectric.co.jp> | 2023-05-24 16:20:56 +0900 |
commit | 5c9b63f1becf7d5b26613051d8852856fc939df4 (patch) | |
tree | 1f098adcc3dab00a1eef96739cb96184f08efb62 | |
parent | 72def66b047bdd95b29ac0522b77baf7de0be07e (diff) |
Use memmove() for copying overlaped areas.
Signed-off-by: Tamura Dai <Tamura.Dai@dh.MitsubishiElectric.co.jp>
-rw-r--r-- | src/xf86Elo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xf86Elo.c b/src/xf86Elo.c index d356da8..758a198 100644 --- a/src/xf86Elo.c +++ b/src/xf86Elo.c @@ -263,7 +263,7 @@ xf86EloGetPacket(unsigned char *buffer, */ ErrorF("Elographics: Dropping one byte in an attempt to synchronize: '%c' 0x%X\n", buffer[0], buffer[0]); - memcpy(&buffer[0], &buffer[1], num_bytes-1); + memmove(&buffer[0], &buffer[1], num_bytes-1); } else { /* |