summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-05-21 10:13:28 +0200
committerGravatar Nikias Bassen2014-05-21 10:13:28 +0200
commit2e0242bfb0cb032641f2da5fd9e6ddafe3e47f96 (patch)
treeeb6b9962a98bf4fb736ed733aa6f46bbc956c447 /src
parent135164ae0676ccd2f5cbb9f88d4ea4bd35d1a584 (diff)
downloadlibplist-2e0242bfb0cb032641f2da5fd9e6ddafe3e47f96.tar.gz
libplist-2e0242bfb0cb032641f2da5fd9e6ddafe3e47f96.tar.bz2
xplist: Fix PLIST_DATE parsing in xml_to_node()
Diffstat (limited to 'src')
-rw-r--r--src/xplist.c2
1 files changed, 1 insertions, 1 deletions
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);