aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r--mail/mail-mt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index ac2e71b7b5..9c3decf0e4 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -866,7 +866,9 @@ do_call(struct _mail_msg *mm)
struct _call_msg *m = (struct _call_msg *)mm;
void *p1, *p2, *p3, *p4, *p5;
int i1;
- va_list ap = m->ap;
+ va_list ap;
+
+ G_VA_COPY(ap, m->ap);
switch(m->type) {
case MAIL_CALL_p_p:
@@ -926,7 +928,7 @@ void *mail_call_main(mail_call_t type, MailMainFunc func, ...)
m = mail_msg_new(&mail_call_op, reply, sizeof(*m));
m->type = type;
m->func = func;
- va_copy(m->ap, ap);
+ G_VA_COPY(m->ap, ap);
if (!ismain) {
e_msgport_put(mail_gui_port, (EMsg *)m);