fixed previous edit
authormarc <devnull@localhost>
Mon, 18 Dec 1995 18:13:41 +0000 (18:13 +0000)
committermarc <devnull@localhost>
Mon, 18 Dec 1995 18:13:41 +0000 (18:13 +0000)
,

CVS patchset: 54
CVS date: 1995/12/18 18:13:41

lib/header.c

index 44108ba..b0a429c 100644 (file)
@@ -431,7 +431,7 @@ int getEntry(Header h, int_32 tag, int_32 * type, void **p, int_32 * c)
        *p = h->data + ntohl(index->offset);
        break;
     case STRING_TYPE:
-       if (*c == 1) {
+       if (ntohl(index->count) == 1) {
            /* Special case -- just return a pointer to the string */
            *p = h->data + ntohl(index->offset);
        } else {