aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkb/xkbActions.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-01-25 08:22:27 +0000
committermarha <marha@users.sourceforge.net>2010-01-25 08:22:27 +0000
commit724396e50bc811ea09416afbe00a8420d60647bf (patch)
treefd5f6baeaad8ae7cc680dae46e1ae633544ee2a9 /xorg-server/xkb/xkbActions.c
parent2ddb9669098ba260d0667276b5d1e7999c72b993 (diff)
parenta0b1a2d0be5641d39e23725a20e9bf4a52c2ed2a (diff)
downloadvcxsrv-724396e50bc811ea09416afbe00a8420d60647bf.tar.gz
vcxsrv-724396e50bc811ea09416afbe00a8420d60647bf.tar.bz2
vcxsrv-724396e50bc811ea09416afbe00a8420d60647bf.zip
svn merge ^/branches/released .
Diffstat (limited to 'xorg-server/xkb/xkbActions.c')
-rw-r--r--xorg-server/xkb/xkbActions.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/xorg-server/xkb/xkbActions.c b/xorg-server/xkb/xkbActions.c
index 49c1de21b..a665a48e7 100644
--- a/xorg-server/xkb/xkbActions.c
+++ b/xorg-server/xkb/xkbActions.c
@@ -1016,7 +1016,7 @@ register int i;
if (xkbi->szFilters==0) {
xkbi->szFilters = 4;
- xkbi->filters = _XkbTypedCalloc(xkbi->szFilters,XkbFilterRec);
+ xkbi->filters = xcalloc(xkbi->szFilters, sizeof(XkbFilterRec));
/* 6/21/93 (ef) -- XXX! deal with allocation failure */
}
for (i=0;i<xkbi->szFilters;i++) {
@@ -1026,9 +1026,8 @@ register int i;
}
}
xkbi->szFilters*=2;
- xkbi->filters= _XkbTypedRealloc(xkbi->filters,
- xkbi->szFilters,
- XkbFilterRec);
+ xkbi->filters= xrealloc(xkbi->filters,
+ xkbi->szFilters * sizeof(XkbFilterRec));
/* 6/21/93 (ef) -- XXX! deal with allocation failure */
bzero(&xkbi->filters[xkbi->szFilters/2],
(xkbi->szFilters/2)*sizeof(XkbFilterRec));