Mercurial > hg > orthanc
diff Core/Toolbox.cpp @ 3401:962e5f00744b
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Jun 2019 14:58:27 +0200 |
parents | a2862d4484f5 |
children | cbbe0bb80bd4 |
line wrap: on
line diff
--- a/Core/Toolbox.cpp Fri Jun 07 14:26:09 2019 +0200 +++ b/Core/Toolbox.cpp Fri Jun 07 14:58:27 2019 +0200 @@ -745,7 +745,7 @@ } - bool Toolbox::IsSHA1(const char* str, + bool Toolbox::IsSHA1(const void* str, size_t size) { if (size == 0) @@ -753,8 +753,8 @@ return false; } - const char* start = str; - const char* end = str + size; + const char* start = reinterpret_cast<const char*>(str); + const char* end = start + size; // Trim the beginning of the string while (start < end)