Skip to content

Commit

Permalink
Don't interpret file display names as format strings
Browse files Browse the repository at this point in the history
This avoids a segfault when copying/moving files containing "%" formatters
in their name.

Signed-off-by: Jannis Pohlmann <jannis@xfce.org>
  • Loading branch information
Lionel Le Folgoc authored and Jannis Pohlmann committed Apr 15, 2011
1 parent 6f6bd15 commit 03dd312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thunar/thunar-transfer-job.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down

0 comments on commit 03dd312

Please sign in to comment.