diff options
author | theraven <theraven@FreeBSD.org> | 2013-07-10 10:49:31 +0000 |
---|---|---|
committer | theraven <theraven@FreeBSD.org> | 2013-07-10 10:49:31 +0000 |
commit | 30a0ccc9e6a2233c7d9f03028880be3e205fd7d1 (patch) | |
tree | ee42ff7378fd2433cb88e1cfa25b2a65035b0c43 /src/stdexcept.cpp | |
parent | 8546120978e348b3bed62936eae651837ccbcafd (diff) | |
download | FreeBSD-src-30a0ccc9e6a2233c7d9f03028880be3e205fd7d1.zip FreeBSD-src-30a0ccc9e6a2233c7d9f03028880be3e205fd7d1.tar.gz |
Pull new libc++ into vendor branch.
Diffstat (limited to 'src/stdexcept.cpp')
-rw-r--r-- | src/stdexcept.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdexcept.cpp b/src/stdexcept.cpp index 0c4e832..8d25f3e 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<char*>(c_str()), msg); + std::memcpy(const_cast<char*>(c_str()), msg, len + 1); } inline |