(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/print_dlg.c) |
| |
| 451 | | | args->print_dissections = print_dissections_none; |
| 452 | | | args->print_hex = FALSE; |
| 453 | | | args->print_formfeed = FALSE; |
| 454 | | | } |
| 455 | | | |
| 456 | | | |
| 457 | | | packet_range_init(&args->range); |
| 458 | | | |
| 459 | | | export_carrays_win = open_print_dialog("Wireshark: Export as \"C Arrays\" File", |
| 460 | | | output_action_export_carrays, args); |
| 461 | | | g_signal_connect(export_carrays_win, "destroy", G_CALLBACK(print_destroy_cb), &export_carrays_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.
|
|
| 462 | | | } |
| 463 | | | |
| 464 | | | static void |
| 465 | | | print_browse_file_cb(GtkWidget *file_bt, GtkWidget *file_te) |
| 466 | | | { |
| 467 | | | file_selection_browse(file_bt, file_te, "Wireshark: Print to File", |
| 468 | | | FILE_SELECTION_WRITE_BROWSE); |
| 469 | | | } |
| 470 | | | |
| 471 | | | |
| |