Use the new va_copy macro to copy variable argument lists instead of
assignment. This is needed on powerpc but is also more correct for the other ports. Submitted by: grehan Tested on: alpha, i386, sparc64
This commit is contained in:
parent
3c34956a21
commit
d07090a880
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103876
@ -611,7 +611,7 @@ __vfprintf(FILE *fp, const char *fmt0, va_list ap)
|
||||
fmt = (char *)fmt0;
|
||||
argtable = NULL;
|
||||
nextarg = 1;
|
||||
orgap = ap;
|
||||
va_copy(orgap, ap);
|
||||
uio.uio_iov = iovp = iov;
|
||||
uio.uio_resid = 0;
|
||||
uio.uio_iovcnt = 0;
|
||||
|
@ -589,7 +589,7 @@ __vfwprintf(FILE *fp, const wchar_t *fmt0, va_list ap)
|
||||
fmt = (wchar_t *)fmt0;
|
||||
argtable = NULL;
|
||||
nextarg = 1;
|
||||
orgap = ap;
|
||||
va_copy(orgap, ap);
|
||||
ret = 0;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user