Just a wild guess, at least it passes the compiler check
Code:
Line 96: if(critTable[slot2].values[i]!=defaultTable[slot1].values[i]) {
Line 97: sprintf_s(logmsg, "Entry %s value %d changed from %d to %d", section, i, defaultTable[slot1].values[i], critTable[slot2].values[i]);