Allocate size of data pointed to (64 bits) rather than size of pointer to data...

svn path=/trunk/; revision=24765
This commit is contained in:
Martin Mathieson 2008-04-04 04:44:59 +00:00
parent 1f19552893
commit 2f5189f014
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ gboolean catapult_dct2000_read(wtap *wth, int *err, gchar **err_info _U_,
}
/* Add packet entry into table */
pkey = g_malloc(sizeof(pkey));
pkey = g_malloc(sizeof(*pkey));
*pkey = this_offset;
g_hash_table_insert(file_externals->packet_prefix_table, pkey, line_prefix_info);