From caaf027e554295a320f7841f433375ddad344aee Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Mon, 11 Jan 2010 08:59:11 +0100 Subject: [PATCH] widl: Fix size parameter for xrealloc (Coccinelle). --- tools/widl/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c index de8e466937..30feca8dbe 100644 --- a/tools/widl/proxy.c +++ b/tools/widl/proxy.c @@ -754,7 +754,7 @@ static void build_iface_list( const statement_list_t *stmts, type_t **ifaces[], type_t *iface = stmt->u.type; 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; } }