[Xfce4-commits] <thunar:master> Don't interpret file display names as format strings

Jannis Pohlmann noreply at xfce.org
Fri Apr 15 14:16:01 CEST 2011


Updating branch refs/heads/master
         to 03dd312e157d4fa8a11d5fa402706ae5b05806fa (commit)
       from 6f6bd15ae0f1117126db05c03c129771e3119fe9 (commit)

commit 03dd312e157d4fa8a11d5fa402706ae5b05806fa
Author: Lionel Le Folgoc <lionel at lefolgoc.net>
Date:   Fri Apr 15 13:12:38 2011 +0200

    Don't interpret file display names as format strings
    
    This avoids a segfault when copying/moving files containing "%" formatters
    in their name.
    
    Signed-off-by: Jannis Pohlmann <jannis at xfce.org>

 thunar/thunar-transfer-job.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/thunar/thunar-transfer-job.c b/thunar/thunar-transfer-job.c
index f77839f..c38cf85 100644
--- a/thunar/thunar-transfer-job.c
+++ b/thunar/thunar-transfer-job.c
@@ -534,7 +534,7 @@ thunar_transfer_job_copy_node (ThunarTransferJob  *job,
         }
 
       /* update progress information */
-      exo_job_info_message (EXO_JOB (job), g_file_info_get_display_name (info));
+      exo_job_info_message (EXO_JOB (job), "%s", g_file_info_get_display_name (info));
 
 retry_copy:
       /* copy the item specified by this node (not recursively) */



More information about the Xfce4-commits mailing list