diff options
author | Jonathan Beck | 2009-09-06 23:44:40 +0200 |
---|---|---|
committer | Jonathan Beck | 2009-09-06 23:44:40 +0200 |
commit | c18c9d087860e812431799fae406144928dd46c8 (patch) | |
tree | f94aef122be6ab5a140540f28b335940d3d198d9 | |
parent | a32dc0f65798f0e2df319c61b9e07906e2bcdd79 (diff) | |
download | libplist-c18c9d087860e812431799fae406144928dd46c8.tar.gz libplist-c18c9d087860e812431799fae406144928dd46c8.tar.bz2 |
Fix boolean length in binary parsing
-rw-r--r-- | src/bplist.c | 2 |
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); } |