diff --git a/src/komodo.h b/src/komodo.h index 8f47f3fd8..6a404beb8 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -68,7 +68,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) printf("loaded block ht.%d\n",height); continue; } - if ( len == 66 && strcmp(scriptstr,CRYPTO777_PUBSECPSTR,66) == 0 ) + if ( len == 66 && strncmp(scriptstr,CRYPTO777_PUBSECPSTR,66) == 0 ) printf("ht.%d txi.%d (%s)\n",height,i,scriptstr); } } else printf("komodo_connectblock: unexpected null pindex\n");