diff --git a/format.h b/format.h index 0531dd22..4303c9d9 100644 --- a/format.h +++ b/format.h @@ -534,7 +534,7 @@ private: BasicWriter &operator<<(const Char *value) { std::size_t size = std::strlen(value); - std::strncpy(GrowBuffer(size), value, size); + std::copy(value, value + size, GrowBuffer(size)); return *this; }