# HG changeset patch # User Mark Doliner # Date 1181495520 0 # Node ID 2c425e60fb1dc28c77b1213c0b00710efbabbc68 # Parent 60bc2827d0e7f4d11f6ebf7e2c84df7a5b0a3566 Use G_GSIZE_FORMAT when formatting strings containing size_t values in the file transfer dialog. Fixes #1312. diff -r 60bc2827d0e7 -r 2c425e60fb1d pidgin/gtkft.c --- a/pidgin/gtkft.c Sun Jun 10 15:59:10 2007 +0000 +++ b/pidgin/gtkft.c Sun Jun 10 17:12:00 2007 +0000 @@ -248,8 +248,8 @@ get_xfer_info_strings(xfer, &kbsec, &time_elapsed, &time_remaining); - status = g_strdup_printf("%ld%% (%ld of %ld bytes)", - (unsigned long)(purple_xfer_get_progress(xfer)*100), + status = g_strdup_printf("%d%% (%" G_GSIZE_FORMAT " of %" G_GSIZE_FORMAT " bytes)", + (int)(purple_xfer_get_progress(xfer)*100), (unsigned long)purple_xfer_get_bytes_sent(xfer), (unsigned long)purple_xfer_get_size(xfer));