Fixed buffer overrun (fencepost error) where vector indices were being
pre- rather than post-incremented.
Merge pull request #4 from keithj/devel

Fixed buffer overrun (fencepost error)