Fix a few off-by-one errors
Merge pull request #48 from threeifbywhiskey/oboe-fixes

Fix a few off-by-one errors