summaryrefslogtreecommitdiff
path: root/dix/devices.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-06-04 11:10:46 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-06-05 08:53:34 +0930
commitfbf4b5f16ac23359872361c8c95a617fe8c92292 (patch)
treee6f7f5efe51c1c605432a31418fad1df6d0ef4ff /dix/devices.c
parentff3adf3e564d94fea18e48f966de40a7ded1279e (diff)
dix: set dst->mapWidth when allocating a new map.
Diffstat (limited to 'dix/devices.c')
-rw-r--r--dix/devices.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dix/devices.c b/dix/devices.c
index efdc0c945..c83f2fc9f 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -1046,6 +1046,7 @@ SetKeySymsMap(KeySymsPtr dst, KeySymsPtr src)
if (!map)
return FALSE;
dst->map = map;
+ dst->mapWidth = src->mapWidth;
}
memmove((char *)&dst->map[rowDif * dst->mapWidth],
(char *)src->map,