for best results, apply va_copy only to va_list.

okay pvalchev@
This commit is contained in:
espie 2004-03-10 17:34:45 +00:00
parent 5c86c28ea6
commit 5ce349ba61

View File

@ -1,18 +1,11 @@
$OpenBSD: p-lib_libxview_attr_attr_c,v 1.1 2004/03/03 09:02:14 pvalchev Exp $
--- lib/libxview/attr/attr.c.orig 2004-03-03 01:47:38.000000000 -0700
+++ lib/libxview/attr/attr.c 2004-03-03 01:48:36.000000000 -0700
@@ -91,11 +91,11 @@ Xv_private Attr_avlist copy_va_to_av( va
--- lib/libxview/attr/attr.c.orig 1993-06-29 07:14:36.000000000 +0200
+++ lib/libxview/attr/attr.c 2004-03-10 17:47:04.000000000 +0100
@@ -91,7 +91,7 @@ Xv_private Attr_avlist copy_va_to_av( va
/* These two variables are used instead of the paramters so that the
position in the lists is maintained after a recursive call.
*/
- valist = valist1;
- avlist = avlist1;
+ va_copy(valist, valist1);
+ va_copy(avlist, avlist1);
avlist = avlist1;
if( !avlist )
- avlist = avlist_tmp;
+ va_copy(avlist, avlist_tmp);
if( attr1 )
attr = attr1;