From ab96fd445cb6a8b707d60fb87553e4af6cf20dd5 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Wed, 28 Sep 2011 02:00:49 +0200 Subject: fix string format --- embed/ephy-request-about.c | 2 +- src/ephy-window.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/embed/ephy-request-about.c b/embed/ephy-request-about.c index 497800289..331442729 100644 --- a/embed/ephy-request-about.c +++ b/embed/ephy-request-about.c @@ -74,7 +74,7 @@ read_css_style (EphyRequestAbout *about) GError *error = NULL; if (!g_file_get_contents (ephy_file ("about.css"), &about->priv->css_style, NULL, &error)) - g_debug (error->message); + g_debug ("%s", error->message); } static GInputStream * diff --git a/src/ephy-window.c b/src/ephy-window.c index dc69089de..014a3a670 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -547,10 +547,10 @@ construct_confirm_close_dialog (EphyWindow *window, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_CANCEL, - title); + "%s", title); gtk_message_dialog_format_secondary_text - (GTK_MESSAGE_DIALOG (dialog), info); + (GTK_MESSAGE_DIALOG (dialog), "%s", info); gtk_dialog_add_button (GTK_DIALOG (dialog), action, GTK_RESPONSE_ACCEPT); -- cgit v1.2.3