From bd01d60a9404d63f2437ee868036187762b1983f Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 9 Jun 2003 13:06:19 +0000 Subject: Use va_copy for the valist instead of directly accessing it. va_list is 2003-06-09 Jeremy Katz * lib/ephy-node.c (callback): Use va_copy for the valist instead of directly accessing it. va_list is implemented as an array on some platforms (eg, AMD64). --- lib/ephy-node.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ephy-node.c b/lib/ephy-node.c index e88cb13ce..ed2b20e7b 100644 --- a/lib/ephy-node.c +++ b/lib/ephy-node.c @@ -115,11 +115,13 @@ int_hash (gconstpointer a) static void callback (long id, EphyNodeSignalData *data, gpointer *user_data) { - va_list valist = (va_list) user_data[0]; + va_list valist; EphyNodeSignalType type = GPOINTER_TO_INT (user_data[1]); if (data->type != type) return; + va_copy(valist, user_data[0]); + switch (data->type) { case EPHY_NODE_DESTROY: -- cgit v1.2.3