diff options
| author | David Chisnall <theraven@FreeBSD.org> | 2013-07-10 10:49:31 +0000 |
|---|---|---|
| committer | David Chisnall <theraven@FreeBSD.org> | 2013-07-10 10:49:31 +0000 |
| commit | 1c9014238e909c768bf84564733b5441d5c9ea2b (patch) | |
| tree | ee42ff7378fd2433cb88e1cfa25b2a65035b0c43 /src/stdexcept.cpp | |
| parent | 527d9fcb66574fdd657c3235c0d7cba7c5439d5c (diff) | |
Notes
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 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<char*>(c_str()), msg); + std::memcpy(const_cast<char*>(c_str()), msg, len + 1); } inline |
