diff --git a/include/fmt/core.h b/include/fmt/core.h index 919c97ae..5f51ea5d 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -967,9 +967,8 @@ template class buffer { auto free_cap = capacity_ - size_; if (free_cap < count) count = free_cap; auto out = make_checked(ptr_ + size_, count); - for (size_t i = 0; i < count; ++i) *out++ = begin[i]; + for (size_t i = 0; i < count; ++i) *out++ = *begin++; size_ += count; - begin += count; } }