Bug
authormarc <devnull@localhost>
Tue, 7 Oct 1997 14:22:40 +0000 (14:22 +0000)
committermarc <devnull@localhost>
Tue, 7 Oct 1997 14:22:40 +0000 (14:22 +0000)
CVS patchset: 1843
CVS date: 1997/10/07 14:22:40

build/reqprov.c

index ffd79bd..b06e930 100644 (file)
@@ -327,7 +327,7 @@ int processReqProv(Header h, struct PackageRec *p)
 
     if (p->numObsoletes) {
        rd = p->reqprov;
-       nameArray = namePtr = malloc(p->numProv * sizeof(*nameArray));
+       nameArray = namePtr = malloc(p->numObsoletes * sizeof(*nameArray));
        rpmMessage(RPMMESS_VERBOSE, "Obsoletes (%d):", p->numObsoletes);
        while (rd) {
            if (rd->flags & RPMSENSE_OBSOLETES) {