diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-10-15 20:33:06 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-10-15 20:33:06 +0000 |
commit | 6f56cbf07ee71a753a4d62d78ad6d47fc929a12a (patch) | |
tree | 502ac7295a0bab59bb2d338fa3ea18624bcf6a0d /gtk | |
parent | c36e5fd163ed70fb3709bacece94e71f3ac01240 (diff) |
Phil Techau's patch to add "col_append_str()".
svn path=/trunk/; revision=845
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/main.c b/gtk/main.c index b335481715..eb55e8fa68 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1,6 +1,6 @@ /* main.c * - * $Id: main.c,v 1.22 1999/10/14 01:28:48 guy Exp $ + * $Id: main.c,v 1.23 1999/10/15 20:33:06 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -662,7 +662,10 @@ main(int argc, char *argv[]) cf.cinfo.fmt_matx[i] = (gboolean *) g_malloc0(sizeof(gboolean) * NUM_COL_FMTS); get_column_format_matches(cf.cinfo.fmt_matx[i], cf.cinfo.col_fmt[i]); - cf.cinfo.col_data[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN); + if (cf.cinfo.col_fmt[i] == COL_INFO) + cf.cinfo.col_data[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_INFO_LEN); + else + cf.cinfo.col_data[i] = (gchar *) g_malloc(sizeof(gchar) * COL_MAX_LEN); } if (cf.snap < 1) |