summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bplist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bplist.c b/src/bplist.c
index d2a1ccb..d83f700 100644
--- a/src/bplist.c
+++ b/src/bplist.c
@@ -630,7 +630,7 @@ static plist_t parse_bin_node_at_index(struct bplist_data *bplist, uint32_t node
630 plist_t plist = NULL; 630 plist_t plist = NULL;
631 const char* idx_ptr = NULL; 631 const char* idx_ptr = NULL;
632 632
633 if (node_index > bplist->num_objects) 633 if (node_index >= bplist->num_objects)
634 return NULL; 634 return NULL;
635 635
636 idx_ptr = bplist->offset_table + node_index * bplist->offset_size; 636 idx_ptr = bplist->offset_table + node_index * bplist->offset_size;