- fix offbyone
authorMichael Schroeder <mls@suse.de>
Mon, 25 Aug 2008 13:14:53 +0000 (13:14 +0000)
committerMichael Schroeder <mls@suse.de>
Mon, 25 Aug 2008 13:14:53 +0000 (13:14 +0000)
tools/repo_rpmmd.c

index 5de1714..2c87fd2 100644 (file)
@@ -965,7 +965,7 @@ endElement(void *userData, const char *name)
             pd->ncscache = index + 1;
           }
         /* add the checksum to the cache */
-        pd->cscache[index-1] = s - pool->solvables;
+        pd->cscache[index] = s - pool->solvables;
         break;
       }
     case STATE_FILE: