diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2002-01-15 23:11:02 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2002-01-15 23:11:02 +0000 |
commit | 06348ee4e0bf301d357ddf8cd11ef05971c17515 (patch) | |
tree | 7fb73ec2c79f6ef64c6ba34867932bd7b187f5a0 /tethereal.c | |
parent | 61147d4da2cba94bf223e7eddf8a6438ec77d10b (diff) |
Tethereal needs to allocate space for col_expr[] and col_expr_val[] too.
Capturing with non-verbose output being printed segfaulted w/o this.
svn path=/trunk/; revision=4551
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tethereal.c b/tethereal.c index 9faa4db245..a507262ee9 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.117 2002/01/13 20:35:08 guy Exp $ + * $Id: tethereal.c,v 1.118 2002/01/15 23:11:02 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -677,6 +677,9 @@ main(int argc, char *argv[]) cfile.cinfo.col_buf[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_INFO_LEN); else cfile.cinfo.col_buf[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN); + + cfile.cinfo.col_expr[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN); + cfile.cinfo.col_expr_val[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN); } #ifdef HAVE_LIBPCAP |