diff --git a/xmlreader.c b/xmlreader.c index 3528d7d8..315fa92b 100644 --- a/xmlreader.c +++ b/xmlreader.c @@ -58,7 +58,7 @@ #ifdef __va_copy #define va_copy(dest, src) __va_copy(dest, src) #else - #define va_copy(dest, src) memcpy(dest, src, sizeof(va_list)) + #define va_copy(dest, src) memcpy(&(dest), &(src), sizeof(va_list)) #endif #endif diff --git a/xmlstring.c b/xmlstring.c index 258ecc92..e3f92d3a 100644 --- a/xmlstring.c +++ b/xmlstring.c @@ -30,7 +30,7 @@ #ifdef __va_copy #define va_copy(dest, src) __va_copy(dest, src) #else - #define va_copy(dest, src) memcpy(dest, src, sizeof(va_list)) + #define va_copy(dest, src) memcpy(&(dest), &(src), sizeof(va_list)) #endif #endif diff --git a/xmlwriter.c b/xmlwriter.c index f648dc05..c84d2be3 100644 --- a/xmlwriter.c +++ b/xmlwriter.c @@ -36,7 +36,7 @@ #ifdef __va_copy #define va_copy(dest, src) __va_copy(dest, src) #else - #define va_copy(dest, src) memcpy(dest, src, sizeof(va_list)) + #define va_copy(dest, src) memcpy(&(dest), &(src), sizeof(va_list)) #endif #endif