From 3c54c676afd8ac464e53bbac4e8ad2077b79504c Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Tue, 16 Nov 2010 08:45:23 +0100 Subject: [PATCH] valist cannot be reused, even in apple --- gtk/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/main.c b/gtk/main.c index 04aea71f0..584db85e7 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1309,7 +1309,7 @@ void linphone_gtk_log_handler(OrtpLogLevel lev, const char *fmt, va_list args){ if (verbose){ const char *lname="undef"; char *msg; - #ifdef __linux + #if defined(__linux) || defined(__APPLE__) va_list cap;/*copy of our argument list: a va_list cannot be re-used (SIGSEGV on linux 64 bits)*/ #endif switch(lev){ @@ -1331,7 +1331,7 @@ void linphone_gtk_log_handler(OrtpLogLevel lev, const char *fmt, va_list args){ default: g_error("Bad level !"); } -#ifdef __linux +#if defined(__linux) || defined(__APPLE__) va_copy(cap,args); msg=g_strdup_vprintf(fmt,cap); va_end(cap);