We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e9e2df commit e773b43Copy full SHA for e773b43
1 file changed
src/base/auto_mem.hh
@@ -300,7 +300,7 @@ public:
300
301
auto_buffer& append(std::string_view sv)
302
{
303
- if (this->ab_size + sv.length() < this->ab_capacity) {
+ if (this->ab_size + sv.length() > this->ab_capacity) {
304
this->expand_by(sv.length() + 1024);
305
}
306
memcpy(&this->ab_buffer[this->ab_size], sv.data(), sv.length());
0 commit comments