From bbe4d39dddcc9dfb2c5fa497a91a7ae75d2ab11d Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 19 Apr 1988 16:45:19 +0000 Subject: [PATCH] improved stupid test --- modules/src/object/rd_arhdr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/src/object/rd_arhdr.c b/modules/src/object/rd_arhdr.c index f9f868033..95c63ea19 100644 --- a/modules/src/object/rd_arhdr.c +++ b/modules/src/object/rd_arhdr.c @@ -21,7 +21,7 @@ rd_arhdr(fd, arhdr) i = read(fd, c, AR_TOTAL); if (i == 0) return 0; - if (i < 0 || i != AR_TOTAL) { + if (i != AR_TOTAL) { rd_fatal(); } i = 14; @@ -41,7 +41,7 @@ rd_arhdr(fd, arhdr) register int i; i = read(fd, (char *) arhdr, AR_TOTAL); if (i == 0) return 0; - if (i < 0 || i != AR_TOTAL) rd_fatal(); + if (i != AR_TOTAL) rd_fatal(); } #endif return 1;