mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
auditlog-sublist-fix-20061012
FIXES 35559 update so we don't botch the va_list child
This commit is contained in:
parent
d71d42d29f
commit
e8a6b9977e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user