From 4dd5bdb4fe73e07b45f04ce20a60d8496a99e641 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sat, 20 Aug 2016 17:30:04 +1000 Subject: [PATCH] Fix for ticproc --- utils/ticproc/ticproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/ticproc/ticproc.c b/utils/ticproc/ticproc.c index dbeb796..127901a 100644 --- a/utils/ticproc/ticproc.c +++ b/utils/ticproc/ticproc.c @@ -195,8 +195,8 @@ int add_file(struct ticfile_t *ticfile) { fclose(fptr); - if (crc != strtol(ticfile->crc, NULL, 16)) { - fprintf(stderr, "CRC Mismatch, bailing 0x%x != 0x%x\n", crc, strtol(ticfile->crc, NULL, 16)); + if (crc != strtoul(ticfile->crc, NULL, 16)) { + fprintf(stderr, "CRC Mismatch, bailing 0x%x != 0x%x\n", crc, strtoul(ticfile->crc, NULL, 16)); sqlite3_close(db); return -1; }