changeset 17816:2c425e60fb1d

Use G_GSIZE_FORMAT when formatting strings containing size_t values in the file transfer dialog. Fixes #1312.
author Mark Doliner <mark@kingant.net>
date Sun, 10 Jun 2007 17:12:00 +0000
parents 60bc2827d0e7
children 42a6171a3b25
files pidgin/gtkft.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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));