[gtk+] printing: Fix build with -Werror=format-security
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] printing: Fix build with -Werror=format-security
- Date: Wed, 6 Mar 2013 21:50:54 +0000 (UTC)
commit 4054d531c32d0d28614435fae1d9041b629197bc
Author: Rico Tzschichholz <ricotz t-online de>
Date: Wed Mar 6 22:26:21 2013 +0100
printing: Fix build with -Werror=format-security
modules/printbackends/cups/gtkprintbackendcups.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c
b/modules/printbackends/cups/gtkprintbackendcups.c
index e80821c..4d095de 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -637,7 +637,7 @@ gtk_print_backend_cups_print_stream (GtkPrintBackend *print_backend,
cups_printer->hostname,
cups_printer->device_uri,
GTK_PRINT_BACKEND_CUPS (print_backend)->username);
- g_snprintf (printer_absolute_uri, HTTP_MAX_URI, cups_printer->printer_uri);
+ g_snprintf (printer_absolute_uri, HTTP_MAX_URI, "%s", cups_printer->printer_uri);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]