bugfix: a buffer over-read hasn't been caught correctly and caused an assert()-statement to fail.
bugfix: a buffer over-read hasn't been caught correctly and caused an assert()-statement to fail.

AMOS-ss16-proj3/amos-ss16-proj3,AMOS-ss16-proj3/amos-ss16-proj3,AMOS-ss16-proj3/amos-ss16-proj3,AMOS-ss16-proj3/amos-ss16-proj3,AMOS-ss16-proj3/amos-ss16-proj3