$OpenBSD: p-lib_libxview_base_xv_c,v 1.1 2004/03/03 09:02:14 pvalchev Exp $
--- lib/libxview/base/xv.c.orig	1993-06-28 23:14:41.000000000 -0600
+++ lib/libxview/base/xv.c	2004-03-03 01:49:17.000000000 -0700
@@ -556,7 +556,7 @@ va_dcl
 	case XV_KEY_DATA:
 	case XV_IS_SUBTYPE_OF:
 	    status = XV_OK;
-	    args = args_save;
+	    va_copy(args, args_save);
 	    result = generic_get(object, &status, (Attr_attribute) attr, args);
 	    va_end(args);
 	    return result;
@@ -575,7 +575,7 @@ va_dcl
 	 * Go to the beginning of the varargs list every time to insure each
          * pkg gets the start of the  varargs.
 	 */
-        args = args_save;
+        va_copy(args, args_save);
 
 	/* ask the object to handle the get */
 	result = (*(pkg->get)) (object, &status, (Attr_attribute) attr, args);
