> Actually, the version offset is not needed. It was just a > little mistake: > > > // compute checksum > > int cksum = 0; > ^^^ > You're using a 32-bit integer for the 16-bit checksum, that's > why it doesn't > match.
DOH!!