summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-04-18 09:22:37 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-04-18 14:39:28 +0930
commiteebdf69e9a52e071e0467a1f99de135df4d1eabc (patch)
treefa7097cd3f3f937487bf7738dc9d4811b3d74119 /xkb
parentaa6687322de85a2d1025a3ae851fb290a089b2d3 (diff)
xkb: mixing up src and dst in a memcpy is suboptimal.
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbLEDs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/xkbLEDs.c b/xkb/xkbLEDs.c
index 1ea3e1116..2b8efcef2 100644
--- a/xkb/xkbLEDs.c
+++ b/xkb/xkbLEDs.c
@@ -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