dix: set dst->mapWidth when allocating a new map.

This commit is contained in:
Peter Hutterer 2008-06-04 11:10:46 +09:30
parent ff3adf3e56
commit fbf4b5f16a

View File

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