fixed input buffer size on osx