strbuf: buffer_putc should return int