mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-20 04:24:20 -04:00
Fix for crash on os/arch without va_copy
This commit is contained in:
parent
a921916f30
commit
3caf85e221
@ -676,7 +676,7 @@ char *util_asprintf(char *fmt, ...) {
|
|||||||
# ifdef HAVE___VA_COPY
|
# ifdef HAVE___VA_COPY
|
||||||
# define VA_COPY(a,b) __va_copy((a),(b))
|
# define VA_COPY(a,b) __va_copy((a),(b))
|
||||||
# else
|
# else
|
||||||
# define VA_COPY(a,b) memcpy((a),(b),sizeof(b))
|
# define VA_COPY(a,b) memcpy((&a),(&b),sizeof(b))
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user