From: Jonathan McDowell Date: Mon, 25 Apr 2011 01:33:13 +0000 (-0700) Subject: Fix buffer_getchar to only error if we'd exceed the buffer size X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/f93d57195dfa072ca6fea0c76428fde5337bcabc?hp=f93d57195dfa072ca6fea0c76428fde5337bcabc Fix buffer_getchar to only error if we'd exceed the buffer size We were erroring when we retrieved the end of the buffer, and not if we overflowed past the end. Check if we'd overflow and return an error only in that case. ---