Fix a bug in Pds_skip()
authorfatbob313 <martin@fatbob.nu>
Sun, 7 Feb 2010 13:17:00 +0000 (13:17 +0000)
committerfatbob313 <martin@fatbob.nu>
Sun, 7 Feb 2010 13:17:00 +0000 (13:17 +0000)
src/pds.c

index 0563c53653515d793c5be5c741809f8844bfb2b5..6f63e1a1f3943d0b3d241fcbe9f1fc21c08bb01d 100644 (file)
--- a/src/pds.c
+++ b/src/pds.c
@@ -95,7 +95,7 @@ uint8_t Pds_next8(pds_t *pds)
 
 int Pds_skip(pds_t *pds, int offset)
 {
-       if (pds->offset + offset < pds->maxsize) {
+       if (pds->offset + offset <= pds->maxsize) {
                pds->offset += offset;
                return offset;
        } else {