pkgsrc/lang/ossp-js/patches/patch-ad
2015-12-29 23:34:43 +00:00

19 lines
816 B
Text

$NetBSD: patch-ad,v 1.2 2015/12/29 23:34:53 dholland Exp $
Use memcpy correctly. See patch-ac.
--- config.h.in.orig 2007-02-08 04:39:29.000000000 -0500
+++ config.h.in
@@ -10,10 +10,10 @@
#define __VA_COPY_USE_C99(d, s) va_copy((d), (s))
/* Predefined possible va_copy() implementation (id: CPP) */
-#define __VA_COPY_USE_CPP(d, s) memcpy((void *)(d), (void *)(s)), sizeof(*(s))
+#define __VA_COPY_USE_CPP(d, s) memcpy((void *)(d), (void *)(s), sizeof(*(s)))
/* Predefined possible va_copy() implementation (id: CPS) */
-#define __VA_COPY_USE_CPS(d, s) memcpy((void *)&(d), (void *)&(s)), sizeof((s))
+#define __VA_COPY_USE_CPS(d, s) memcpy((void *)&(d), (void *)&(s), sizeof((s)))
/* Predefined possible va_copy() implementation (id: GCB) */
#define __VA_COPY_USE_GCB(d, s) __builtin_va_copy((d), (s))