-/* Copyright (C) 2009, Martin Johansson <martin@fatbob.nu>
- Copyright (C) 2005-2009, Thorvald Natvig <thorvald@natvig.com>
+/* Copyright (C) 2009-2011, Martin Johansson <martin@fatbob.nu>
+ Copyright (C) 2005-2011, Thorvald Natvig <thorvald@natvig.com>
All rights reserved.
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 {