Use memset in the safe way

This commit is contained in:
Ivan Skytte Jørgensen
2016-10-10 12:27:54 +02:00
parent 829a3cb1f2
commit 98ccf7d0da

@ -199,7 +199,7 @@ bool Bits::setForSummary ( const Words *words ) {
if ( getNumXmlNodes() > 512 ) {
g_process.shutdownAbort(true);
}
memset ( s_bt , 0 , 512 * sizeof(nodeid_t) );
memset ( s_bt, 0, sizeof(s_bt) );
// set just those that have bits #defined in Bits.h
s_bt [ TAG_TITLE ] = D_IN_TITLE;
s_bt [ TAG_A ] = D_IN_HYPERLINK;