summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/plucker_base.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/plucker_base.cpp b/noncore/apps/opie-reader/plucker_base.cpp
index 51c7fa7..81614f5 100644
--- a/noncore/apps/opie-reader/plucker_base.cpp
+++ b/noncore/apps/opie-reader/plucker_base.cpp
@@ -290,2 +290,3 @@ void CPlucker_base::locate(unsigned int n)
unsigned long bs = 0;
+ unsigned int np1 = n+1;
UInt16 thishdr_uid, thishdr_nParagraphs;
@@ -307,3 +308,3 @@ void CPlucker_base::locate(unsigned int n)
}
- } while (locpos + bs < n);
+ } while (locpos + bs < np1);