diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-08 19:57:52 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-08 19:57:52 -0700 |
commit | 5bc9fceed3002e0b24a3510f12779fc1243c4c07 (patch) | |
tree | 3ace3d12e614e27cece95fad1eef96bae0d52409 /system/lib/libcxx/stdexcept.cpp | |
parent | 6c275bebb45d6aac7e4a024b825ab34971b178d2 (diff) | |
parent | 32b77e92823f0cd6837b85f3c6208715fb0e757b (diff) |
Merge pull request #1480 from waywardmonkeys/update-libcxx-part-20
Update libcxx
Diffstat (limited to 'system/lib/libcxx/stdexcept.cpp')
-rw-r--r-- | system/lib/libcxx/stdexcept.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/lib/libcxx/stdexcept.cpp b/system/lib/libcxx/stdexcept.cpp index 0c4e8323..8d25f3ee 100644 --- a/system/lib/libcxx/stdexcept.cpp +++ b/system/lib/libcxx/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 |