From 2e0242bfb0cb032641f2da5fd9e6ddafe3e47f96 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 21 May 2014 10:13:28 +0200 Subject: xplist: Fix PLIST_DATE parsing in xml_to_node() --- src/xplist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xplist.c b/src/xplist.c index 62c624e..200d942 100644 --- a/src/xplist.c +++ b/src/xplist.c @@ -404,7 +404,7 @@ static void xml_to_node(xmlNodePtr xml_node, plist_t * plist_node) tm_utc = gmtime(&timev); timev -= (mktime(tm_utc) - timev); } - data->timeval.tv_sec = (long)time; + data->timeval.tv_sec = (long)timev; data->timeval.tv_usec = 0; data->type = PLIST_DATE; data->length = sizeof(struct timeval); -- cgit v1.1-32-gdbae