From 81743638f85a60b2659b1e79dcec31ea83c9fef4 Mon Sep 17 00:00:00 2001 From: Benedikt Meurer <benny@xfce.org> Date: Sat, 20 Aug 2005 14:44:52 +0000 Subject: [PATCH] 2005-08-20 Benedikt Meurer <benny@xfce.org> * thunar-vfs/thunar-vfs-job.c(thunar_vfs_job_emit): Use G_VA_COPY to copy variable argument lists in a portable manner. (Old svn revision: 17042) --- ChangeLog | 5 +++++ thunar-vfs/thunar-vfs-job.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 99b4b580b..ce3d2fa38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-08-20 Benedikt Meurer <benny@xfce.org> + + * thunar-vfs/thunar-vfs-job.c(thunar_vfs_job_emit): Use G_VA_COPY to + copy variable argument lists in a portable manner. + 2005-08-19 Benedikt Meurer <benny@xfce.org> * thunar/thunar-standard-view.{c,h}: Allow derived classes to add diff --git a/thunar-vfs/thunar-vfs-job.c b/thunar-vfs/thunar-vfs-job.c index 45135aac5..7ed1cd359 100644 --- a/thunar-vfs/thunar-vfs-job.c +++ b/thunar-vfs/thunar-vfs-job.c @@ -317,9 +317,11 @@ thunar_vfs_job_emit_valist (ThunarVfsJob *job, details.job = job; details.signal_id = signal_id; details.signal_detail = signal_detail; - details.var_args = var_args; details.pending = TRUE; + /* copy the variable argument list (portable) */ + G_VA_COPY (details.var_args, var_args); + g_mutex_lock (job->mutex); g_idle_add_full (G_PRIORITY_LOW, thunar_vfs_job_idle, &details, NULL); while (G_UNLIKELY (details.pending)) -- GitLab