summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-09-06 23:44:40 +0200
committerGravatar Jonathan Beck2009-09-06 23:44:40 +0200
commitc18c9d087860e812431799fae406144928dd46c8 (patch)
treef94aef122be6ab5a140540f28b335940d3d198d9 /src
parenta32dc0f65798f0e2df319c61b9e07906e2bcdd79 (diff)
downloadlibplist-c18c9d087860e812431799fae406144928dd46c8.tar.gz
libplist-c18c9d087860e812431799fae406144928dd46c8.tar.bz2
Fix boolean length in binary parsing
Diffstat (limited to 'src')
-rw-r--r--src/bplist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bplist.c b/src/bplist.c
index f993d9e..cd7fe9b 100644
--- a/src/bplist.c
+++ b/src/bplist.c
@@ -271,6 +271,7 @@ static plist_t parse_bin_node(char *object, uint8_t dict_size, char **next_objec
plist_data_t data = plist_new_plist_data();
data->type = PLIST_BOOLEAN;
data->boolval = TRUE;
+ data->length = 1;
return g_node_new(data);
}
@@ -279,6 +280,7 @@ static plist_t parse_bin_node(char *object, uint8_t dict_size, char **next_objec
plist_data_t data = plist_new_plist_data();
data->type = PLIST_BOOLEAN;
data->boolval = FALSE;
+ data->length = 1;
return g_node_new(data);
}