diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-03-22 19:24:08 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-03-22 19:24:08 +0000 |
commit | ed3d478fb9df0bf832113f7827c4baa5335b1d7f (patch) | |
tree | de0ace0326fe61b35513497256b95063a91299c0 /file.c | |
parent | fac93b08b2a3d24140f2a2b212676dc90ca5c28f (diff) | |
download | wireshark-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |