diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-02-17 03:45:06 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-02-17 03:45:06 +0000 |
commit | 8d7ffcc99b02ffd0315e32ab26678fe6058f1289 (patch) | |
tree | e42f5dcc01845d5517399b454286f3e1816b8063 /ui/gtk/airpcap_gui_utils.c | |
parent | 806cb7224df91bbaac0744a881c185fdf25fe9ea (diff) |
Add a macro that, for a given count of keys, returns the total size of
an AirpcapKeysCollection structure with that number of keys, and use it
instead of doing the calculation manually.
svn path=/trunk/; revision=47699
Diffstat (limited to 'ui/gtk/airpcap_gui_utils.c')
-rw-r--r-- | ui/gtk/airpcap_gui_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/airpcap_gui_utils.c b/ui/gtk/airpcap_gui_utils.c index c33308cde5..fec1ad3594 100644 --- a/ui/gtk/airpcap_gui_utils.c +++ b/ui/gtk/airpcap_gui_utils.c @@ -715,7 +715,7 @@ airpcap_add_keys_to_driver_from_list(GtkListStore *key_list_store, airpcap_if_in /* * Calculate the size of the keys collection */ - KeysCollectionSize = (guint) (sizeof(AirpcapKeysCollection) + keys_in_list * sizeof(AirpcapKey)); + KeysCollectionSize = (guint)AirpcapKeysCollectionSize(keys_in_list); /* * Allocate the collection |