use va_copy for copying va_list
This commit is contained in:
parent
5437708bec
commit
718cc9cb86
21
games/kobodeluxe/patches/patch-eel_e_getargs_c
Normal file
21
games/kobodeluxe/patches/patch-eel_e_getargs_c
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
$OpenBSD: patch-eel_e_getargs_c,v 1.1 2004/03/03 08:42:47 pvalchev Exp $
|
||||||
|
--- eel/e_getargs.c.orig 2002-04-22 02:05:35.000000000 -0600
|
||||||
|
+++ eel/e_getargs.c 2004-03-03 01:38:45.000000000 -0700
|
||||||
|
@@ -604,7 +604,7 @@ static int eel_get_argsv(int argc, struc
|
||||||
|
|
||||||
|
eel_current.arg = 1;
|
||||||
|
|
||||||
|
- args_tipple_start = args; /* Warning supressor... */
|
||||||
|
+ va_copy(args_tipple_start, args); /* Warning supressor... */
|
||||||
|
while(got < argc)
|
||||||
|
{
|
||||||
|
eel_data_t *a = argv + got;
|
||||||
|
@@ -636,7 +636,7 @@ static int eel_get_argsv(int argc, struc
|
||||||
|
++fmt;
|
||||||
|
using_tipple = 1;
|
||||||
|
tipple_start = fmt;
|
||||||
|
- args_tipple_start = args;
|
||||||
|
+ va_copy(args_tipple_start, args);
|
||||||
|
continue;
|
||||||
|
case '>':
|
||||||
|
/* Argument tipple end */
|
Loading…
x
Reference in New Issue
Block a user