Fix signed/unsigned checksum problem PAZ-871
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 17 May 2013 12:59:01 +0000 (14:59 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 17 May 2013 12:59:01 +0000 (14:59 +0200)
src/http_command.c

index 004abba..deed733 100644 (file)
@@ -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;