(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/print_dlg.c) |
| |
| 149 | | | } |
| 150 | | | |
| 151 | | | |
| 152 | | | packet_range_init(&args->range); |
| 153 | | | |
| 154 | | | if(print_selected) { |
| 155 | | | args->range.process = range_process_selected; |
| 156 | | | } |
| 157 | | | |
| 158 | | | print_win = open_print_dialog("Wireshark: Print", output_action_print, args); |
| 159 | | | g_signal_connect(print_win, "destroy", G_CALLBACK(print_destroy_cb), &print_win);
x /usr/include/glib-2.0/gobject/gsignal.h |
| |
421 | #define g_signal_connect(instance, detailed_signal, c_handler, data) \ |
422 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) |
| |
x /usr/include/glib-2.0/gobject/gclosure.h |
| |
72 | #define G_CALLBACK(f) ((GCallback) (f)) |
| |
|
Dangerous Function Cast
Casting print_destroy_cb to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 160 | | | } |
| 161 | | | |
| 162 | | | void |
| 163 | | | file_print_cmd_cb(GtkWidget *widget _U_, gpointer data _U_) |
| 164 | | | { |
| 165 | | | file_print_cmd(FALSE); |
| 166 | | | } |
| 167 | | | |
| 168 | | | void |
| 169 | | | file_print_selected_cmd_cb(GtkWidget *widget _U_, gpointer data _U_) |
| |