Fixed input reader from failing for input less than the max buffer