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:
Tim J. Robbins 2002-09-24 00:47:27 +00:00
parent 3c34956a21
commit d07090a880
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103876
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
/*