printing: Fix build with -Werror=format-security

This commit is contained in:
Rico Tzschichholz 2013-03-06 22:26:21 +01:00 committed by Rico Tzschichholz
parent ca2368dba9
commit 4054d531c3

View File

@ -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
{