xkb: mixing up src and dst in a memcpy is suboptimal.

This commit is contained in:
Peter Hutterer 2008-04-18 09:22:37 +09:30
parent aa6687322d
commit eebdf69e9a

View File

@ -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