]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
- 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 5de171496cacf2130c43af8250300e816de5ee4b..2c87fd2ea719bb51d8082b2bd992132e2a4dccbe 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: