We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89bbd54 commit 0caf2b1Copy full SHA for 0caf2b1
src/main.cpp
@@ -3092,11 +3092,11 @@ bool LoadExternalBlockFile(FILE* fileIn, CDiskBlockPos *dbp)
3092
unsigned int nSize = 0;
3093
try {
3094
// locate a header
3095
- unsigned char buf[4];
+ unsigned char buf[MESSAGE_START_SIZE];
3096
blkdat.FindByte(Params().MessageStart()[0]);
3097
nRewind = blkdat.GetPos()+1;
3098
blkdat >> FLATDATA(buf);
3099
- if (memcmp(buf, Params().MessageStart(), 4))
+ if (memcmp(buf, Params().MessageStart(), MESSAGE_START_SIZE))
3100
continue;
3101
// read size
3102
blkdat >> nSize;
0 commit comments