diff options
author | Brad King <brad.king@kitware.com> | 2014-04-10 13:53:08 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-04-10 13:53:08 (GMT) |
commit | 5e6f2794117ff75d0eaba5211e64fa475c25f308 (patch) | |
tree | 8c5e207dabcfe8054a90b9af96c7e0163154235e | |
parent | 2a326fa65ff076b6eb201936b5ce31247b6a4c5a (diff) | |
parent | 539b6c58f5d9fa9487f8d831f11320517e4dae47 (diff) | |
download | CMake-5e6f2794117ff75d0eaba5211e64fa475c25f308.zip CMake-5e6f2794117ff75d0eaba5211e64fa475c25f308.tar.gz CMake-5e6f2794117ff75d0eaba5211e64fa475c25f308.tar.bz2 |
Merge topic 'aix-compile'
539b6c58 Fix build on AIX failing because of access to string elements
-rw-r--r-- | Source/cmCryptoHash.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCryptoHash.cxx b/Source/cmCryptoHash.cxx index 0d3c6bb..74e17b6 100644 --- a/Source/cmCryptoHash.cxx +++ b/Source/cmCryptoHash.cxx @@ -38,7 +38,7 @@ cmsys::auto_ptr<cmCryptoHash> cmCryptoHash::New(const char* algo) std::string cmCryptoHash::HashString(const std::string& input) { this->Initialize(); - this->Append(reinterpret_cast<unsigned char const*>(&input[0]), + this->Append(reinterpret_cast<unsigned char const*>(input.c_str()), static_cast<int>(input.size())); return this->Finalize(); } |