aboutsummaryrefslogtreecommitdiffstats
path: root/src/pdf_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf_get.c')
-rw-r--r--src/pdf_get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf_get.c b/src/pdf_get.c
index f72f4aa..4e1ec56 100644
--- a/src/pdf_get.c
+++ b/src/pdf_get.c
@@ -136,7 +136,7 @@ pdf_get_free_ids(pdf_object_t **pdf, int **ids, int count)
if (i != id) {
(*ids)[pos] = i;
- if (pos == count)
+ if (pos == count - 1)
return 0;
pos++;