blob: 51de70a3daee6c500f2158d49eefeb88069409aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-fb,v 1.1 2007/05/12 00:22:17 tnn Exp $
--- lib/libxview/base/xv.c.orig 1993-06-29 07:14:41.000000000 +0200
+++ 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);
|