Fix extra arguments to g_strdup_printf (thanks to coverity scan),
authorwwp <wwp@free.fr>
Tue, 20 Dec 2016 22:01:29 +0000 (23:01 +0100)
committerwwp <wwp@free.fr>
Tue, 20 Dec 2016 22:01:29 +0000 (23:01 +0100)
add quotes around header names in few dialogs.

src/compose.c
src/prefs_folder_item.c

index fc02ba75c3f8ddc2814072955378c7c1898a2e72..01473854f9ffc164de90c8b40f0fd131a1f26a45 100644 (file)
@@ -5036,7 +5036,7 @@ static gboolean compose_check_for_set_recipients(Compose *compose)
                                gtk_widget_show_all(compose->window);
                        }
                        aval = alertpanel(_("Send"),
-                                         _("The only recipient is the default Cc address. Send anyway?"),
+                                         _("The only recipient is the default 'Cc' address. Send anyway?"),
                                          GTK_STOCK_CANCEL, g_strconcat("+", _("_Send"), NULL), NULL);
                        if (aval != G_ALERTALTERNATE)
                                return FALSE;
@@ -5068,7 +5068,7 @@ static gboolean compose_check_for_set_recipients(Compose *compose)
                                gtk_widget_show_all(compose->window);
                        }
                        aval = alertpanel(_("Send"),
-                                         _("The only recipient is the default BCC address. Send anyway?"),
+                                         _("The only recipient is the default 'Bcc' address. Send anyway?"),
                                          GTK_STOCK_CANCEL, g_strconcat("+", _("_Send"), NULL), NULL);
                        if (aval != G_ALERTALTERNATE)
                                return FALSE;
index b52187b44cfceac6d9df92b30f3a5496366bbc65..f407efb11bf1b25e22b890e1f665352c3d8217ae 100644 (file)
@@ -919,7 +919,7 @@ static void prefs_folder_item_compose_create_widget_func(PrefsPage * page_,
                rowcount++;
 
                /* Default To */
-               text = g_strdup_printf(_("Default %s"), prefs_common_translated_header_name("To:"), NULL);
+               text = g_strdup_printf(_("Default %s"), prefs_common_translated_header_name("To:"));
                checkbtn_default_to = gtk_check_button_new_with_label(text);
                gtk_table_attach(GTK_TABLE(table), checkbtn_default_to, 0, 1, 
                                 rowcount, rowcount + 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 0);
@@ -943,7 +943,7 @@ static void prefs_folder_item_compose_create_widget_func(PrefsPage * page_,
 
                /* Default address to reply to */
                text = g_strdup_printf(_("Default %s"), prefs_common_translated_header_name("To:"),
-                                _(" for replies"), NULL);
+                                _(" for replies"));
                checkbtn_default_reply_to = gtk_check_button_new_with_label(text);
                gtk_table_attach(GTK_TABLE(table), checkbtn_default_reply_to, 0, 1, 
                                 rowcount, rowcount + 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 0);
@@ -966,7 +966,7 @@ static void prefs_folder_item_compose_create_widget_func(PrefsPage * page_,
                rowcount++;
 
                /* Default Cc */
-               text = g_strdup_printf(_("Default %s"), prefs_common_translated_header_name("Cc:"), NULL);
+               text = g_strdup_printf(_("Default %s"), prefs_common_translated_header_name("Cc:"));
                checkbtn_default_cc = gtk_check_button_new_with_label(text);
                gtk_table_attach(GTK_TABLE(table), checkbtn_default_cc, 0, 1, 
                                 rowcount, rowcount + 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 0);
@@ -1012,7 +1012,7 @@ static void prefs_folder_item_compose_create_widget_func(PrefsPage * page_,
                rowcount++;
 
                /* Default Reply-to */
-               text = g_strdup_printf(_("Default %s"), prefs_common_translated_header_name("Reply-To:"), NULL);
+               text = g_strdup_printf(_("Default %s"), prefs_common_translated_header_name("Reply-To:"));
                checkbtn_default_replyto = gtk_check_button_new_with_label(text);
                gtk_table_attach(GTK_TABLE(table), checkbtn_default_replyto, 0, 1, 
                                 rowcount, rowcount + 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 0);