PPCoin: Fix MessageStart debug print since 6b0e5bf
authorSunny King <sunnyking9999@gmail.com>
Mon, 10 Sep 2012 18:55:57 +0000 (19:55 +0100)
committerSunny King <sunnyking9999@gmail.com>
Mon, 10 Sep 2012 18:55:57 +0000 (19:55 +0100)
src/main.cpp

index 04886ed..d9039f8 100644 (file)
@@ -3220,7 +3220,7 @@ bool ProcessMessages(CNode* pfrom)
     static int64 nTimeLastPrintMessageStart = 0;
     if (fDebug && GetBoolArg("-printmessagestart") && nTimeLastPrintMessageStart + 30 < GetAdjustedTime())
     {
-        string strMessageStart((const char *)pchMessageStart);
+        string strMessageStart((const char *)pchMessageStart, sizeof(pchMessageStart));
         vector<unsigned char> vchMessageStart(strMessageStart.begin(), strMessageStart.end());
         printf("ProcessMessages : AdjustedTime=%"PRI64d" MessageStart=%s\n", GetAdjustedTime(), HexStr(vchMessageStart).c_str());
         nTimeLastPrintMessageStart = GetAdjustedTime();