From: fatbob313 Date: Sun, 7 Feb 2010 13:17:00 +0000 (+0000) Subject: Fix a bug in Pds_skip() X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=49d3c8e83f5b2e25d605155c1554d2a3b77dcda2;p=umurmur.git Fix a bug in Pds_skip() --- diff --git a/src/pds.c b/src/pds.c index 0563c53..6f63e1a 100644 --- 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 {