Update copyright year.
[umurmur.git] / src / pds.c
index 5c00abf6ebd1e5f85d538a0244b8338a19060a76..38b9fef94f31d723d53f8b04250347eb3a3bf1f2 100644 (file)
--- a/src/pds.c
+++ b/src/pds.c
@@ -1,5 +1,5 @@
-/* Copyright (C) 2009, Martin Johansson <martin@fatbob.nu>
-   Copyright (C) 2005-2009, Thorvald Natvig <thorvald@natvig.com>
+/* Copyright (C) 2009-2013, Martin Johansson <martin@fatbob.nu>
+   Copyright (C) 2005-2013, Thorvald Natvig <thorvald@natvig.com>
 
    All rights reserved.
 
@@ -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 {