Fix a casting problem. (#485662, patch by Herbert Valerio Riedel)

2007-11-22  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/cups/gtkcupsutils.c: Fix a casting problem.
        (#485662, patch by Herbert Valerio Riedel)



svn path=/trunk/; revision=19025
This commit is contained in:
Matthias Clasen 2007-11-22 06:04:41 +00:00 committed by Matthias Clasen
parent 1ece9d4e40
commit 68c4796380
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-11-22 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkcupsutils.c: Fix a casting problem.
(#485662, patch by Herbert Valerio Riedel)
2007-11-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextiter.c: Fix an aliasing problem. (#347585, Ed Catmur)

View File

@ -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));