Fix for ticproc

This commit is contained in:
Andrew Pamment 2016-08-20 17:30:04 +10:00
parent ef7b372567
commit 4dd5bdb4fe

View File

@ -195,8 +195,8 @@ int add_file(struct ticfile_t *ticfile) {
fclose(fptr); fclose(fptr);
if (crc != strtol(ticfile->crc, NULL, 16)) { if (crc != strtoul(ticfile->crc, NULL, 16)) {
fprintf(stderr, "CRC Mismatch, bailing 0x%x != 0x%x\n", crc, strtol(ticfile->crc, NULL, 16)); fprintf(stderr, "CRC Mismatch, bailing 0x%x != 0x%x\n", crc, strtoul(ticfile->crc, NULL, 16));
sqlite3_close(db); sqlite3_close(db);
return -1; return -1;
} }