remove one from rpmTagTableSize (NULL entry)
authorewt <devnull@localhost>
Thu, 30 Jan 1997 20:03:01 +0000 (20:03 +0000)
committerewt <devnull@localhost>
Thu, 30 Jan 1997 20:03:01 +0000 (20:03 +0000)
CVS patchset: 1386
CVS date: 1997/01/30 20:03:01

lib/Makefile.in

index a1652d4..a888d2d 100644 (file)
@@ -42,7 +42,7 @@ tagtable.c: rpmlib.h
        echo '  { NULL, 0 }' >> tagtable.c
        echo '};' >> tagtable.c
        echo '' >> tagtable.c
-       echo 'const int rpmTagTableSize = sizeof(rpmTagTable) / sizeof(struct headerTagTableEntry);' >> tagtable.c
+       echo 'const int rpmTagTableSize = sizeof(rpmTagTable) / sizeof(struct headerTagTableEntry) - 1;' >> tagtable.c
 
 install:
        $(INSTALL) -m 644 -o 0 -g 0 $(srcdir)/rpmlib.h $(INCDIR)