2013-09-26 17:14:40 +02:00

23 lines
739 B
Plaintext

$NetBSD: patch-fb,v 1.2 2009/12/10 20:35:58 abs Exp $
--- lib/libxview/base/xv.c.orig 1993-06-29 05:14:41.000000000 +0000
+++ lib/libxview/base/xv.c
@@ -556,7 +556,7 @@ va_dcl
case XV_KEY_DATA:
case XV_IS_SUBTYPE_OF:
status = XV_OK;
- args = args_save;
+ va_copy(args_save, args);
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);