From 68c479638043c840c2e2d04d1a01cfe5b1c78c4d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 22 Nov 2007 06:04:41 +0000 Subject: [PATCH] Fix a casting problem. (#485662, patch by Herbert Valerio Riedel) 2007-11-22 Matthias Clasen * modules/printbackends/cups/gtkcupsutils.c: Fix a casting problem. (#485662, patch by Herbert Valerio Riedel) svn path=/trunk/; revision=19025 --- ChangeLog | 5 +++++ modules/printbackends/cups/gtkcupsutils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 681846b42e..6c46f12213 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-22 Matthias Clasen + + * modules/printbackends/cups/gtkcupsutils.c: Fix a casting problem. + (#485662, patch by Herbert Valerio Riedel) + 2007-11-22 Matthias Clasen * gtk/gtktextiter.c: Fix an aliasing problem. (#347585, Ed Catmur) diff --git a/modules/printbackends/cups/gtkcupsutils.c b/modules/printbackends/cups/gtkcupsutils.c index ca7986e43d..da729bf3c0 100644 --- a/modules/printbackends/cups/gtkcupsutils.c +++ b/modules/printbackends/cups/gtkcupsutils.c @@ -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));