From: Michael Schroeder Date: Mon, 25 Aug 2008 13:14:53 +0000 (+0000) Subject: - fix offbyone X-Git-Tag: BASE-SuSE-Code-12_1-Branch~550 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=553a805e8d0a16486e96288e40e9f3db24ede90b;p=platform%2Fupstream%2Flibsolv.git - fix offbyone --- diff --git a/tools/repo_rpmmd.c b/tools/repo_rpmmd.c index 5de1714..2c87fd2 100644 --- a/tools/repo_rpmmd.c +++ b/tools/repo_rpmmd.c @@ -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: