pkgsrc/x11/xview-lib/patches/patch-fb
abs c9c8f97e88 - Add PKG_DESTDIR_SUPPORT
- Depend on the latest version of xview-config
- Mark as LICENSE sun-openlook-license
- Bump pkgrevision
2009-12-10 20:35:56 +00:00

22 lines
739 B
Text

$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);