From: svost Date: Fri, 1 Apr 2016 20:56:30 +0000 (+0300) Subject: Rewrite pszTimestamp var: get rid of char* X-Git-Tag: nvc-v0.5.8~7^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=a56c152bd0619d8befeb07b6d6e7428d3cc0fcd3 Rewrite pszTimestamp var: get rid of char* --- diff --git a/src/main.cpp b/src/main.cpp index 0d19e8b..73dade9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2775,12 +2775,12 @@ bool LoadBlockIndex(bool fAllowNew) // CTxOut(empty) // vMerkleTree: 4cb33b3b6a - const char* pszTimestamp = "https://bitcointalk.org/index.php?topic=134179.msg1502196#msg1502196"; + const string strTimestamp = "https://bitcointalk.org/index.php?topic=134179.msg1502196#msg1502196"; CTransaction txNew; txNew.nTime = 1360105017; txNew.vin.resize(1); txNew.vout.resize(1); - txNew.vin[0].scriptSig = CScript() << 486604799 << CBigNum(9999) << vector((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp)); + txNew.vin[0].scriptSig = CScript() << 486604799 << CBigNum(9999) << vector(strTimestamp.begin(), strTimestamp.end()); txNew.vout[0].SetEmpty(); CBlock block; block.vtx.push_back(txNew);