[gnome-cups-manager] Format specifiers were missing in a couple places.
- From: Kjartan Maraas <kmaraas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-cups-manager] Format specifiers were missing in a couple places.
- Date: Wed, 2 Sep 2009 11:29:02 +0000 (UTC)
commit bb95d9f08f1435af2eee9ef3891d906a0dde1a3b
Author: Kjartan Maraas <kmaraas gnome org>
Date: Wed Sep 2 13:28:55 2009 +0200
Format specifiers were missing in a couple places.
libgnomecups/gnome-cups-ui-driver.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgnomecups/gnome-cups-ui-driver.c b/libgnomecups/gnome-cups-ui-driver.c
index 9fef2d1..f94180e 100644
--- a/libgnomecups/gnome-cups-ui-driver.c
+++ b/libgnomecups/gnome-cups-ui-driver.c
@@ -876,7 +876,7 @@ cb_install_driver (GCupsDriverSelector *ds)
ppd_status_t status = ppdLastError(&line);
char *msg = g_strdup_printf ("%s at %d:'%s'",
ppdErrorString (status), line, ppd_file);
- err = g_error_new (1, 1, msg);
+ err = g_error_new (1, 1, "%s", msg);
g_free (msg);
goto done;
}
@@ -918,6 +918,7 @@ done :
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK,
+ "%s",
err->message);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (GTK_WIDGET (dialog));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]