aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib/ephy-node.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f6f73408b..3d22d8288 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2006-03-23 Christian Persch <chpe@cvs.gnome.org>
+ * lib/ephy-node.c: (write_parent), (ephy_node_write_to_xml):
+
+ Fix print format/arg mismatch.
+
+2006-03-23 Christian Persch <chpe@cvs.gnome.org>
+
* configure.ac:
* src/ephy-main.c: (main):
diff --git a/lib/ephy-node.c b/lib/ephy-node.c
index 7da180d19..39c72f647 100644
--- a/lib/ephy-node.c
+++ b/lib/ephy-node.c
@@ -689,7 +689,7 @@ write_parent (guint id,
if (data->ret < 0) return;
data->ret = xmlTextWriterWriteFormatAttribute
- (writer, (const xmlChar *)"id", "%ld", node_info->node->id);
+ (writer, (const xmlChar *)"id", "%d", node_info->node->id);
if (data->ret < 0) return;
data->ret = xmlTextWriterEndElement (writer); /* parent */
@@ -713,7 +713,7 @@ ephy_node_write_to_xml(EphyNode *node,
if (ret < 0) goto out;
/* write node id */
- ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *)"id", "%ld", node->id);
+ ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *)"id", "%d", node->id);
if (ret < 0) goto out;
/* write node properties */