diff options
author | Laurent Deniel <laurent.deniel@free.fr> | 2003-04-27 20:57:58 +0000 |
---|---|---|
committer | Laurent Deniel <laurent.deniel@free.fr> | 2003-04-27 20:57:58 +0000 |
commit | 4e9e69953627fb04006b837cafb321f4ce2903c3 (patch) | |
tree | 00c602dc312171ce7950b4adea022ab46ec65885 /packet-icmpv6.c | |
parent | 5f98b6206f7a671a30bfa095ea02c7f8cddfe7cc (diff) |
Replace some unchecked malloc calls by g_malloc.
svn path=/trunk/; revision=7584
Diffstat (limited to 'packet-icmpv6.c')
-rw-r--r-- | packet-icmpv6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-icmpv6.c b/packet-icmpv6.c index 9225b82e8f..33a1acea7a 100644 --- a/packet-icmpv6.c +++ b/packet-icmpv6.c @@ -1,7 +1,7 @@ /* packet-icmpv6.c * Routines for ICMPv6 packet disassembly * - * $Id: packet-icmpv6.c,v 1.70 2003/02/04 20:16:57 guy Exp $ + * $Id: packet-icmpv6.c,v 1.71 2003/04/27 20:57:58 deniel Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -216,7 +216,7 @@ again: char *t; int len, i, p; len = (opt->nd_opt_len << 3) - sizeof(*opt); - t = (char *)malloc(len * 3); + t = g_malloc(len * 3); memset(t, 0, len * 3); p = offset + sizeof(*opt); for (i = 0; i < len; i++) { |