bplist: Make sure node index is smaller than number of objects
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 @@
     plist_t plist = NULL;
     const char* idx_ptr = NULL;
 
-    if (node_index > bplist->num_objects)
+    if (node_index >= bplist->num_objects)
         return NULL;
 
     idx_ptr = bplist->offset_table + node_index * bplist->offset_size;