aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-10-15 20:33:06 +0000
committerGuy Harris <guy@alum.mit.edu>1999-10-15 20:33:06 +0000
commit6f56cbf07ee71a753a4d62d78ad6d47fc929a12a (patch)
tree502ac7295a0bab59bb2d338fa3ea18624bcf6a0d /gtk
parentc36e5fd163ed70fb3709bacece94e71f3ac01240 (diff)
Phil Techau's patch to add "col_append_str()".
svn path=/trunk/; revision=845
Diffstat (limited to 'gtk')
-rw-r--r--gtk/main.c7
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)