Merge topic 'aix-compile'
539b6c58 Fix build on AIX failing because of access to string elements
This commit is contained in:
commit
5e6f279411
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user