From 68c479638043c840c2e2d04d1a01cfe5b1c78c4d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 22 Nov 2007 06:04:41 +0000 Subject: 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 --- modules/printbackends/cups/gtkcupsutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/printbackends') 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)); -- cgit v1.2.1