aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib/ephy-node.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cd43db818..631777f2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-07-03 Jeremy Katz <katzj@redhat.com>
+
+ * lib/ephy-node.c (callback): Must use va_copy when assigning
+ valist on arches where varargs are implemented as an array type
+ (such as AMD64)
+
2003-07-03 Xan Lopez <xan@masilla.org>
* embed/mozilla/ContentHandler.cpp:
diff --git a/lib/ephy-node.c b/lib/ephy-node.c
index b9bce2d33..14b4bb1e4 100644
--- a/lib/ephy-node.c
+++ b/lib/ephy-node.c
@@ -126,7 +126,7 @@ callback (long id, EphyNodeSignalData *data, gpointer *dummy)
user_data = (ENESCData *) dummy;
- valist = user_data->valist;
+ va_copy(valist, user_data->valist);
if (data->type != user_data->type) return;
@@ -158,6 +158,8 @@ callback (long id, EphyNodeSignalData *data, gpointer *dummy)
data->callback (data->node, va_arg (valist, int *), data->data);
break;
}
+
+ va_end(valist);
}
static void