From 6829819b8d4400459ba4a345e248c91dc3432d58 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 3 Sep 2013 15:59:46 -0700 Subject: [PATCH] Fix MSVC build. --- format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }