summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-03-22 19:24:08 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-03-22 19:24:08 +0000
commited3d478fb9df0bf832113f7827c4baa5335b1d7f (patch)
treede0ace0326fe61b35513497256b95063a91299c0 /file.c
parentfac93b08b2a3d24140f2a2b212676dc90ca5c28f (diff)
downloadwireshark-ed3d478fb9df0bf832113f7827c4baa5335b1d7f.tar.gz
Allocate correct size of fdata col_text and col_text_len.
Coverity 711 & 716. svn path=/trunk/; revision=36266
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 37d177aa42..becec46315 100644
--- a/file.c
+++ b/file.c
@@ -1164,8 +1164,8 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
static void
init_col_text(frame_data *fdata, gint num_cols)
{
- fdata->col_text_len = se_alloc0(sizeof(fdata->col_text_len) * num_cols);
- fdata->col_text = se_alloc0(sizeof(fdata->col_text) * num_cols);
+ fdata->col_text_len = se_alloc0(sizeof(*fdata->col_text_len) * num_cols);
+ fdata->col_text = se_alloc0(sizeof(*fdata->col_text) * num_cols);
}
/* read in a new packet */