mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
r8684: this should fix the panic on x86_64, and possibly alpha
(This used to be commit c2f5884e2f8a033446467384b6c058567b2fb9ce)
This commit is contained in:
parent
5086945689
commit
04598d3832
@ -330,7 +330,9 @@ static int mprCoreStrcat(int alloc, char **destp, int destMax, int existingLen,
|
||||
dest = *destp;
|
||||
sepLen = (delim) ? strlen(delim) : 0;
|
||||
|
||||
#ifdef __va_copy
|
||||
#ifdef HAVE_VA_COPY
|
||||
va_copy(ap, args);
|
||||
#elif HAVE___VA_COPY
|
||||
__va_copy(ap, args);
|
||||
#else
|
||||
ap = args;
|
||||
@ -368,7 +370,9 @@ static int mprCoreStrcat(int alloc, char **destp, int destMax, int existingLen,
|
||||
}
|
||||
|
||||
if (addBytes > 0) {
|
||||
#ifdef __va_copy
|
||||
#ifdef HAVE_VA_COPY
|
||||
va_copy(ap, args);
|
||||
#elif HAVE___VA_COPY
|
||||
__va_copy(ap, args);
|
||||
#else
|
||||
ap = args;
|
||||
|
Loading…
x
Reference in New Issue
Block a user