From 20679dba829440c68a07cac3f3c228bdc0649b27 Mon Sep 17 00:00:00 2001 From: marc Date: Mon, 18 Dec 1995 18:13:41 +0000 Subject: [PATCH] fixed previous edit , CVS patchset: 54 CVS date: 1995/12/18 18:13:41 --- lib/header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/header.c b/lib/header.c index 44108ba..b0a429c 100644 --- a/lib/header.c +++ b/lib/header.c @@ -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 { -- 2.7.4