mirror of
https://github.com/X11Libre/xf86-input-elographics.git
synced 2026-03-24 01:34:03 +00:00
Use memmove() for copying overlaped areas.
Signed-off-by: Tamura Dai <Tamura.Dai@dh.MitsubishiElectric.co.jp>
This commit is contained in:
@@ -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 {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user