From: Adam Dickmeiss Date: Fri, 17 May 2013 12:59:01 +0000 (+0200) Subject: Fix signed/unsigned checksum problem PAZ-871 X-Git-Tag: v1.6.31~16 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=e39914556c10a64bf415460afe77a18737203fd1;p=pazpar2-moved-to-github.git Fix signed/unsigned checksum problem PAZ-871 --- diff --git a/src/http_command.c b/src/http_command.c index 004abba..deed733 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -1009,7 +1009,7 @@ static void show_record(struct http_channel *c, struct http_session *s) if (checksumstr) { - long v = atol(checksumstr); + unsigned v = strtoul(checksumstr, 0, 10); for (i = 0; r; r = r->next) if (v == r->checksum) break;