summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 2fe9ec331b..fe1011668d 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1820,11 +1820,9 @@ int smb_xvasprintf(char **ptr, const char *format, va_list ap)
{
int n;
va_list ap2;
-#if defined(HAVE_VA_COPY)
- __va_copy(ap2, ap);
-#else
- ap2 = ap;
-#endif
+
+ VA_COPY(ap2, ap);
+
n = vasprintf(ptr, format, ap2);
if (n == -1 || ! *ptr) {
smb_panic("smb_xvasprintf: out of memory");