Paul Vriens : widl: Fix size parameter for xrealloc (Coccinelle).

Alexandre Julliard julliard at winehq.org
Mon Jan 11 15:59:36 CST 2010


Module: wine
Branch: master
Commit: caaf027e554295a320f7841f433375ddad344aee
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=caaf027e554295a320f7841f433375ddad344aee

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Mon Jan 11 08:59:11 2010 +0100

widl: Fix size parameter for xrealloc (Coccinelle).

---

 tools/widl/proxy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c
index de8e466..30feca8 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;
             }
         }




More information about the wine-cvs mailing list