-/* Copyright (C) 2010, Martin Johansson <martin@fatbob.nu>
+/* Copyright (C) 2009-2010, Martin Johansson <martin@fatbob.nu>
Copyright (C) 2005-2010, 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 {