Code correction.

Allow non-zero offset when reading from a pipe stream (necessary for the
pipe reader).