From f74722b10da693e78ac53856028a2187ec7193bb Mon Sep 17 00:00:00 2001 From: Josselin Mouette Date: Wed, 31 Oct 2007 23:58:03 +0000 Subject: [PATCH] * 034_gtkcupsutils_type_fix.patch: type-casting fix from Herbert Valerio Riedel that allows remote printing. Closes: #448071. --- debian/changelog | 4 +++- debian/patches/034_gtkcupsutils_type_fix.patch | 11 +++++++++++ debian/patches/series | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 debian/patches/034_gtkcupsutils_type_fix.patch diff --git a/debian/changelog b/debian/changelog index 97fe1eebfc..9bc5547117 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,8 +9,10 @@ gtk+2.0 (2.12.1-2) UNRELEASED; urgency=low * 033_treeview_resizing.patch: updated patch from Kristian Rietveld. * 031_gtksearchenginetracker_fixes.patch: added back, only the name change was fixed upstream. + * 034_gtkcupsutils_type_fix.patch: type-casting fix from Herbert + Valerio Riedel that allows remote printing. Closes: #448071. - -- Josselin Mouette Wed, 31 Oct 2007 23:05:18 +0100 + -- Josselin Mouette Thu, 01 Nov 2007 00:57:30 +0100 gtk+2.0 (2.12.1-1) unstable; urgency=low diff --git a/debian/patches/034_gtkcupsutils_type_fix.patch b/debian/patches/034_gtkcupsutils_type_fix.patch new file mode 100644 index 0000000000..6226e248b2 --- /dev/null +++ b/debian/patches/034_gtkcupsutils_type_fix.patch @@ -0,0 +1,11 @@ +--- gtk+2.0-2.12.0/modules/printbackends/cups/gtkcupsutils.c.orig 2007-09-13 22:35:49.000000000 +0200 ++++ gtk+2.0-2.12.0/modules/printbackends/cups/gtkcupsutils.c 2007-10-19 12:46:28.000000000 +0200 +@@ -622,7 +622,7 @@ _post_send (GtkCupsRequest *request) + if (request->data_io != NULL) + { + fstat (g_io_channel_unix_get_fd (request->data_io), &data_info); +- sprintf (length, "%lu", (unsigned long) ippLength (request->ipp_request) + data_info.st_size); ++ sprintf (length, "%lu", (unsigned long) (ippLength (request->ipp_request) + data_info.st_size)); + } + else + sprintf (length, "%lu", (unsigned long) ippLength (request->ipp_request)); diff --git a/debian/patches/series b/debian/patches/series index 991b275ba9..f5f284f52d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -12,6 +12,7 @@ 030_gtkentry_password-char-circle.patch 031_gtksearchenginetracker_fixes.patch 033_treeview_resizing.patch +034_gtkcupsutils_type_fix.patch 040_filechooser_single-click.patch 041_ia32-libs.patch 060_ignore-random-icons.patch