From 1c9014238e909c768bf84564733b5441d5c9ea2b Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Wed, 10 Jul 2013 10:49:31 +0000 Subject: Pull new libc++ into vendor branch. --- src/stdexcept.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdexcept.cpp') diff --git a/src/stdexcept.cpp b/src/stdexcept.cpp index 0c4e8323abf3a..8d25f3ee54277 100644 --- a/src/stdexcept.cpp +++ b/src/stdexcept.cpp @@ -61,7 +61,7 @@ __libcpp_nmstr::__libcpp_nmstr(const char* msg) c[0] = c[1] = len; str_ += offset; count() = 0; - std::strcpy(const_cast(c_str()), msg); + std::memcpy(const_cast(c_str()), msg, len + 1); } inline -- cgit v1.3