From: Derrick Brashear Date: Thu, 12 Oct 2006 05:22:35 +0000 (+0000) Subject: STABLE14-auditlog-sublist-fix-20061012 X-Git-Tag: openafs-stable-1_4_2~6 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=63b47791f5474a5f9d96f02b5b24915af5efaed1;p=packages%2Fo%2Fopenafs.git STABLE14-auditlog-sublist-fix-20061012 FIXES 35559 update so we don't botch the va_list child (cherry picked from commit e8a6b9977e637e304017cae8ac6d3fd03501b376) --- diff --git a/src/audit/audit.c b/src/audit/audit.c index e54ddf808..77930e8c9 100644 --- a/src/audit/audit.c +++ b/src/audit/audit.c @@ -98,7 +98,7 @@ audmakebuf(char *audEvent, va_list vaList) bufferPtr += sizeof(vaLong); break; case AUD_LST: /* Ptr to another list */ - va_copy(vaLst, vaList); + va_copy(vaLst, va_arg(vaList, va_list)); audmakebuf(audEvent, vaLst); va_end(vaLst); break; @@ -224,7 +224,7 @@ printbuf(FILE *out, int rec, char *audEvent, afs_int32 errCode, va_list vaList) fprintf(out, "LONG %d ", vaLong); break; case AUD_LST: /* Ptr to another list */ - va_copy(vaLst, vaList); + va_copy(vaLst, va_arg(vaList, va_list)); printbuf(out, 1, "VALST", 0, vaLst); va_end(vaLst); break;