Fixed a dumb error in bounds checking for buf_addstr