summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-10 13:53:08 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-04-10 13:53:08 (GMT)
commit5e6f2794117ff75d0eaba5211e64fa475c25f308 (patch)
tree8c5e207dabcfe8054a90b9af96c7e0163154235e
parent2a326fa65ff076b6eb201936b5ce31247b6a4c5a (diff)
parent539b6c58f5d9fa9487f8d831f11320517e4dae47 (diff)
downloadCMake-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.cxx2
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();
}