fix stupid regression in hcache patch
authorPierre Habouzit <madcoder@debian.org>
Sun, 13 May 2007 21:03:34 +0000 (23:03 +0200)
committerPierre Habouzit <madcoder@debian.org>
Sun, 13 May 2007 21:03:34 +0000 (23:03 +0200)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-mx/hcache.c

index 9da36a0..74ccb5d 100644 (file)
@@ -450,7 +450,7 @@ void *mutt_hcache_fetch(hcache_t *db, const char *filename,
     if (data) {
         unsigned crc = 0;
 
-        restore_int(data, (int *)&crc);
+        restore_int(data + sizeof(long), (int *)&crc);
         if (crc != db->crc)
             p_delete(&data);
     }