Fix some "format not a string literal and no format arguments" warnings.

svn path=/trunk/; revision=26641
This commit is contained in:
Stig Bjørlykke 2008-10-31 09:53:56 +00:00
parent ac88e96246
commit 8608c8f1de
39 changed files with 64 additions and 64 deletions

View File

@ -175,7 +175,7 @@ gtk_afpstat_init(const char *optarg, void *userdata _U_)
error_string=register_tap_listener("afp", ss, filter, afpstat_reset, afpstat_packet, afpstat_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(ss);
return;

View File

@ -476,7 +476,7 @@ register_tap_listener_gtkansi_a_stat(void)
if (err_p != NULL)
{
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, err_p->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", err_p->str);
g_string_free(err_p, TRUE);
exit(1);

View File

@ -439,7 +439,7 @@ register_tap_listener_gtkansi_map_stat(void)
if (err_p != NULL)
{
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, err_p->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", err_p->str);
g_string_free(err_p, TRUE);
exit(1);

View File

@ -246,7 +246,7 @@ dhcpstat_init(const char *optarg, void *userdata _U_)
dhcpstat_draw);
if (error_string){
/* error, we failed to attach to the tap. clean up */
simple_dialog( ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str );
simple_dialog( ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str );
g_free(sp->filter);
g_free(sp);
g_string_free(error_string, TRUE);

View File

@ -195,7 +195,7 @@ static void gtk_camelcounter_init(const char *optarg, void *userdata _U_)
}
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(p_camelcounter);
return;

View File

@ -216,7 +216,7 @@ static void gtk_camelsrt_init(const char *optarg, void *userdata _U_)
}
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(p_camelsrt);
return;

View File

@ -305,7 +305,7 @@ reset_ct_table_data(conversations_table *ct)
error_string = set_tap_dfilter (ct, filter);
if (error_string) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
return;
}
@ -1296,7 +1296,7 @@ init_ct_table_page(conversations_table *conversations, GtkWidget *vbox, gboolean
/* register the tap and rerun the taps on the packet list */
error_string=register_tap_listener(tap_name, conversations, filter, reset_ct_table_data_cb, packet_func, draw_ct_table_data_cb);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
return FALSE;
}

View File

@ -316,7 +316,7 @@ gtk_dcerpcstat_init(const char *optarg, void* userdata _U_)
error_string=register_tap_listener("dcerpc", rs, filter, dcerpcstat_reset, dcerpcstat_packet, dcerpcstat_draw);
if(error_string){
/* error, we failed to attach to the tap. clean up */
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
free_srt_table_data(&rs->srt_table);
g_free(rs);

View File

@ -269,7 +269,7 @@ dnd_open_file_cmd(gchar *cf_names_freeme)
}
g_string_append(dialog_text, "\nThe packets in these files will be merged chronologically into a new temporary file.");
dialog = simple_dialog(ESD_TYPE_CONFIRMATION,
ESD_BTN_OK,
ESD_BTN_OK, "%s",
dialog_text->str);
g_string_free(dialog_text, TRUE);

View File

@ -244,7 +244,7 @@ expert_comp_init(const char *optarg _U_, void* userdata _U_)
expert_dlg_packet,
expert_dlg_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(etd);
return;
@ -257,7 +257,7 @@ expert_comp_init(const char *optarg _U_, void* userdata _U_)
error_string=register_tap_listener("expert", ss, filter, error_reset, error_packet, NULL);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(ss);
return;

View File

@ -546,7 +546,7 @@ expert_dlg_init(const char *optarg, void* userdata _U_)
expert_dlg_packet,
expert_dlg_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(etd);
return;

View File

@ -181,7 +181,7 @@ gtk_fcstat_init(const char *optarg, void *userdata _U_)
error_string=register_tap_listener("fc", fc, filter, fcstat_reset, fcstat_packet, fcstat_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(fc);
return;

View File

@ -419,7 +419,7 @@ static gboolean dialog_graph_dump_to_file(graph_analysis_data_t* user_data)
/* write the frame label */
g_string_printf(tmp_str, empty_line->str);
g_string_append(tmp_str, empty_line->str);
overwrite(tmp_str,user_data->dlg.items[current_item].frame_label,
start_position,
end_position
@ -432,7 +432,7 @@ static gboolean dialog_graph_dump_to_file(graph_analysis_data_t* user_data)
/* write the arrow and frame label*/
fprintf(of, "%s", empty_header);
g_string_printf(tmp_str, empty_line->str);
g_string_append(tmp_str, empty_line->str);
g_string_truncate(tmp_str2, 0);

View File

@ -678,7 +678,7 @@ register_tap_listener_gtkgsm_a_stat(void)
if (err_p != NULL)
{
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, err_p->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", err_p->str);
g_string_free(err_p, TRUE);
exit(1);

View File

@ -472,7 +472,7 @@ register_tap_listener_gtkgsm_map_stat(void)
if (err_p != NULL)
{
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, err_p->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", err_p->str);
g_string_free(err_p, TRUE);
exit(1);

View File

@ -198,7 +198,7 @@ gtk_gtpstat_init(const char *optarg, void *userdata _U_)
error_string=register_tap_listener("gtp", gtp, filter, gtpstat_reset, gtpstat_packet, gtpstat_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(gtp);
return;

View File

@ -534,7 +534,7 @@ gtk_h225counter_init(const char *optarg, void *userdata _U_)
error_string=register_tap_listener("h225", hs, filter, h225counter_reset, h225counter_packet, h225counter_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(hs->filter);
g_free(hs);

View File

@ -314,7 +314,7 @@ gtk_h225rassrt_init(const char *optarg, void *userdata _U_)
error_string=register_tap_listener("h225", hs, filter, h225rassrt_reset, h225rassrt_packet, h225rassrt_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(hs->filter);
g_free(hs);

View File

@ -180,7 +180,7 @@ reset_hostlist_table_data(hostlist_table *hosts)
}
error_string = set_tap_dfilter (hosts, filter);
if (error_string) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
return;
}
@ -686,7 +686,7 @@ init_hostlist_table_page(hostlist_table *hosttable, GtkWidget *vbox, gboolean hi
/* register the tap and rerun the taps on the packet list */
error_string=register_tap_listener(tap_name, hosttable, filter, reset_hostlist_table_data_cb, packet_func, draw_hostlist_table_data_cb);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(hosttable);
return FALSE;

View File

@ -214,7 +214,7 @@ gtk_ldapstat_init(const char *optarg, void *userdata _U_)
error_string=register_tap_listener("ldap", ldap, filter, ldapstat_reset, ldapstat_packet, ldapstat_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(ldap);
return;

View File

@ -345,7 +345,7 @@ register_tap_listener_mcast_stream(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}

View File

@ -280,7 +280,7 @@ gtk_mgcpstat_init(const char *optarg, void *userdata _U_)
error_string=register_tap_listener("mgcp", ms, filter, mgcpstat_reset, mgcpstat_packet, mgcpstat_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(ms->filter);
g_free(ms);

View File

@ -457,7 +457,7 @@ register_tap_listener_gtkmtp3_stat(void)
if (err_p != NULL)
{
simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, err_p->str);
simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, "%s", err_p->str);
g_string_free(err_p, TRUE);
exit(1);

View File

@ -700,7 +700,7 @@ gtk_ncpstat_init(const char *optarg, void *userdata _U_)
/* Register the tap listener */
error_string=register_tap_listener("ncp_srt", ss, filter, ncpstat_reset, ncpstat_packet, ncpstat_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(ss);
return;

View File

@ -1787,7 +1787,7 @@ static void on_refresh_bt_clicked(GtkWidget *bt _U_, user_data_t *user_data _U_)
error_string = register_tap_listener("rtp", user_data, NULL,
rtp_reset, rtp_packet, rtp_draw);
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
return;
}
@ -3350,7 +3350,7 @@ static void rtp_analysis_cb(GtkWidget *w _U_, gpointer data _U_)
/* Try to compile the filter. */
g_strlcpy(filter_text,"rtp && rtp.version && rtp.ssrc && (ip || ipv6)",256);
if (!dfilter_compile(filter_text, &sfcode)) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, dfilter_error_msg);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", dfilter_error_msg);
return;
}
/* we load the current file into cf variable */

View File

@ -191,7 +191,7 @@ register_tap_listener_rtp_stream(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}

View File

@ -266,7 +266,7 @@ gtk_scsistat_init(const char *optarg, void* userdata _U_)
error_string=register_tap_listener("scsi", rs, filter, scsistat_reset, scsistat_packet, scsistat_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
free_srt_table_data(&rs->srt_table);
g_free(rs);

View File

@ -838,7 +838,7 @@ static void sctp_analyse_cb(struct sctp_analyse* u_data, gboolean ext)
g_strlcpy(filter_text,"sctp",250);
if (!dfilter_compile(filter_text, &sfcode)) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, dfilter_error_msg);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", dfilter_error_msg);
return;
}

View File

@ -315,7 +315,7 @@ sctpstat_init(const char *optarg, void *userdata _U_)
sctpstat_packet,
sctpstat_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(hs->filter);
g_free(hs);

View File

@ -1260,7 +1260,7 @@ register_tap_listener_sctp_stat(void)
if (!sctp_tapinfo_struct.is_registered)
{
if ((error_string = register_tap_listener("sctp", &sctp_tapinfo_struct, NULL, reset, packet, sctp_update))) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
return;
}

View File

@ -630,7 +630,7 @@ gtk_sipstat_init(const char *optarg, void *userdata _U_)
if (error_string)
{
/* Error. We failed to attach to the tap. Clean up */
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_free(sp->filter);
g_free(sp);
g_string_free(error_string, TRUE);

View File

@ -178,7 +178,7 @@ gtk_smb2stat_init(const char *optarg, void *userdata _U_)
error_string=register_tap_listener("smb2", ss, filter, smb2stat_reset, smb2stat_packet, smb2stat_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(ss);
return;

View File

@ -216,7 +216,7 @@ gtk_smbstat_init(const char *optarg, void *userdata _U_)
error_string=register_tap_listener("smb", ss, filter, smbstat_reset, smbstat_packet, smbstat_draw);
if(error_string){
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
g_free(ss);
return;

View File

@ -307,7 +307,7 @@ init_gtk_tree(const char* optarg, void *userdata _U_)
if (error_string) {
/* error, we failed to attach to the tap. clean up */
simple_dialog( ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str );
simple_dialog( ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str );
/* destroy_stat_tree_window(st); */
report_failure("stats_tree for: %s failed to attach to the tap: %s",cfg->name,error_string->str);
g_string_free(error_string, TRUE);

View File

@ -1808,7 +1808,7 @@ static struct tcpheader *select_tcpip_session (capture_file *cf, struct segment
/* no real filter yet */
if (!dfilter_compile("tcp", &sfcode)) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, dfilter_error_msg);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", dfilter_error_msg);
return NULL;
}

View File

@ -153,7 +153,7 @@ static char* fld_tostr(void* rec, uat_field_t* f) {
for (i=0; i<len;i++) g_string_append_printf(s,"%.2X",((guint8*)ptr)[i]);
out = ep_strdup_printf(s->str);
out = ep_strdup(s->str);
g_string_free(s,TRUE);
break;

View File

@ -438,7 +438,7 @@ rtp_event_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -671,7 +671,7 @@ rtp_init_tap(void)
);
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -835,7 +835,7 @@ t38_init_tap(void)
);
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -1042,7 +1042,7 @@ sip_calls_init_tap(void)
);
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -1268,7 +1268,7 @@ isup_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -1333,7 +1333,7 @@ mtp3_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -1351,7 +1351,7 @@ mtp3_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -1679,7 +1679,7 @@ q931_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -1982,7 +1982,7 @@ h225_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -2150,7 +2150,7 @@ h245dg_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -2216,7 +2216,7 @@ sdp_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -2586,7 +2586,7 @@ mgcp_calls_init_tap(void)
);
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -2718,7 +2718,7 @@ actrace_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -2867,7 +2867,7 @@ void h248_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -2885,7 +2885,7 @@ void h248_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -3050,7 +3050,7 @@ void sccp_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -3068,7 +3068,7 @@ void sccp_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -3580,7 +3580,7 @@ unistim_calls_init_tap(void){
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -3689,7 +3689,7 @@ VoIPcalls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}
@ -3752,7 +3752,7 @@ prot_calls_init_tap(void)
if (error_string != NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
error_string->str);
"%s", error_string->str);
g_string_free(error_string, TRUE);
exit(1);
}

View File

@ -177,7 +177,7 @@ wlanstat_reset (void *phs)
error_string = set_tap_dfilter (wlan_stat, filter);
if (error_string) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free(error_string, TRUE);
return;
}
@ -1259,7 +1259,7 @@ wlanstat_dlg_create (void)
error_string=register_tap_listener ("wlan", hs, NULL, wlanstat_reset,
wlanstat_packet, wlanstat_draw);
if (error_string) {
simple_dialog (ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str);
simple_dialog (ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free (error_string, TRUE);
g_free (hs);
return;

View File

@ -390,7 +390,7 @@ gtk_wspstat_init(const char *optarg, void *userdata _U_)
wspstat_draw);
if (error_string){
/* error, we failed to attach to the tap. clean up */
simple_dialog( ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str );
simple_dialog( ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str );
g_free(sp->pdu_stats);
g_free(sp->filter);
g_free(sp);