From 7f818f303fec745285b3b4f6501bf183ec199fcb Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 5 Sep 2009 15:57:15 +0200 Subject: Fixed lines_node being added as a child of users_node instead of user_node in export_xml. --- export_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'export_xml.c') diff --git a/export_xml.c b/export_xml.c index 4485f9d..c4f2697 100644 --- a/export_xml.c +++ b/export_xml.c @@ -43,7 +43,7 @@ int export_xml(struct channel_t *channel, struct user_t *users) { xmlNewChild(user_node, NULL, "words", s); /* Add lines for this user. */ - xmlNodePtr lines_node = xmlNewChild(users_node, NULL, "lines", NULL); + xmlNodePtr lines_node = xmlNewChild(user_node, NULL, "lines", NULL); for(int h = 0; h < 24; h++) { xmlNodePtr hour_node = xmlNewChild(lines_node, NULL, "hour", NULL); for(int q = 0; q < 4; q++) { -- cgit v1.2.3