fixed bug
authorewt <devnull@localhost>
Tue, 27 Feb 1996 17:40:59 +0000 (17:40 +0000)
committerewt <devnull@localhost>
Tue, 27 Feb 1996 17:40:59 +0000 (17:40 +0000)
CVS patchset: 432
CVS date: 1996/02/27 17:40:59

lib/package.c

index 59f35d7..f6aafde 100644 (file)
@@ -53,7 +53,7 @@ int pkgReadHeader(int fd, Header * hdr, int * isSource) {
        if (lead.major == 1) {
            readOldHeader(fd, hdr, isSource);
            arch = getArchNum();
-           addEntry(hdr, RPMTAG_ARCH, INT8_TYPE, &arch, 1);
+           addEntry(*hdr, RPMTAG_ARCH, INT8_TYPE, &arch, 1);
        } else if (lead.major == 2) {
            if (!readSignature(fd, lead.signature_type, NULL)) {
               return 2;