widl: Fix size parameter for xrealloc (Coccinelle).
This commit is contained in:
parent
9cf1af7cac
commit
caaf027e55
|
@ -754,7 +754,7 @@ static void build_iface_list( const statement_list_t *stmts, type_t **ifaces[],
|
||||||
type_t *iface = stmt->u.type;
|
type_t *iface = stmt->u.type;
|
||||||
if (type_iface_get_inherit(iface) && need_proxy(iface))
|
if (type_iface_get_inherit(iface) && need_proxy(iface))
|
||||||
{
|
{
|
||||||
*ifaces = xrealloc( *ifaces, (*count + 1) * sizeof(*ifaces) );
|
*ifaces = xrealloc( *ifaces, (*count + 1) * sizeof(**ifaces) );
|
||||||
(*ifaces)[(*count)++] = iface;
|
(*ifaces)[(*count)++] = iface;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue