It's c++
authorsvost <ya.nowa@yandex.ru>
Fri, 6 May 2016 11:27:50 +0000 (14:27 +0300)
committersvost <ya.nowa@yandex.ru>
Fri, 6 May 2016 11:27:50 +0000 (14:27 +0300)
src/init.cpp

index 6689169..bec931d 100644 (file)
@@ -845,7 +845,7 @@ bool AppInit2()
         for (auto mi = mapBlockIndex.begin(); mi != mapBlockIndex.end(); ++mi)
         {
             auto hash = (*mi).first;
-            if (strncmp(hash.ToString().c_str(), strMatch.c_str(), strMatch.size()) == 0)
+            if (strMatch.compare(hash.ToString()) == 0)
             {
                 auto pindex = (*mi).second;
                 CBlock block;