Fix a bug in the rsdr program

When a store has a size that is an exact multiple of the record size, rsdr would throw an exception because it could accidentally try to read past the end.