mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 16:44:52 +00:00
xkb: mixing up src and dst in a memcpy is suboptimal.
This commit is contained in:
@@ -638,7 +638,7 @@ XkbCopySrvLedInfo( DeviceIntPtr from,
|
||||
if (!sli_new)
|
||||
goto finish;
|
||||
|
||||
memcpy(src, sli_new, sizeof(XkbSrvLedInfoRec));
|
||||
memcpy(sli_new, src, sizeof(XkbSrvLedInfoRec));
|
||||
if (sli_new->class == KbdFeedbackClass)
|
||||
sli_new->fb.kf = kf;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user