Code:
/* verify that the checksum matches */
if (l_iChecksum == p_lpszFileData[l_iDataSize])
Of course, it won't work, it's only comparing 1 byte from p_lpszFileData[l_iDataSize].
My question is, should I fix it this way:
Code:
/* verify that the checksum matches */
if (l_iChecksum == *(unsigned int*)&p_lpszFileData[l_iDataSize])
