[evolution-patches] Fix for incorrect escaping of percentage char in e-attachment-bar.c



Attached is a fix for a g_strdup_printf which attempts to use "\%" to
escape a percentage sign.  Correct behaviour is to use "%%".

OK to commit?
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/ChangeLog,v
retrieving revision 1.366
diff -u -p -r1.366 ChangeLog
--- ChangeLog	29 Jul 2005 06:48:20 -0000	1.366
+++ ChangeLog	2 Aug 2005 19:13:01 -0000
@@ -1,3 +1,8 @@
+2005-08-02  David Malcolm  <dmalcolm redhat com>
+
+	* e-attachment-bar.c: (update_remote_file): escape the "%" character 
+	correctly.
+
 2005-07-29  Srinivasa Ragavan <sragavan novell com>
 
 	* e-attachment.c: (e_attachment_new_from_mime_part) used ref instead of 
Index: e-attachment-bar.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-attachment-bar.c,v
retrieving revision 1.4
diff -u -p -r1.4 e-attachment-bar.c
--- e-attachment-bar.c	29 Jul 2005 04:39:25 -0000	1.4
+++ e-attachment-bar.c	2 Aug 2005 19:13:01 -0000
@@ -425,7 +425,7 @@ update_remote_file (EAttachment *attachm
 	}
 	
 	base = g_path_get_basename(attachment->file_name);
-	msg = g_strdup_printf("%s (%d\%)", base, attachment->percentage);
+	msg = g_strdup_printf("%s (%d%%)", base, attachment->percentage);
 	g_free(base);
 
 	icon_list = GNOME_ICON_LIST (bar);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]