From: ceriel Date: Mon, 3 Aug 1987 18:00:22 +0000 (+0000) Subject: Added a break, so that an error message is only given once X-Git-Tag: release-5-5~3957 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3ce2cee0a5518224dc3ba1ad2409bf56e9b3c82e;p=ack.git Added a break, so that an error message is only given once --- diff --git a/util/arch/archiver.c b/util/arch/archiver.c index 21d788b89..92fc31ed2 100644 --- a/util/arch/archiver.c +++ b/util/arch/archiver.c @@ -430,8 +430,10 @@ char *mess; x = even(x); } else status.st_size -= x; - if (read(src_fd, io_buffer, read_chars) != read_chars) + if (read(src_fd, io_buffer, read_chars) != read_chars) { error(FALSE,"%s seems to shrink\n", name); + break; + } mwrite(fd, io_buffer, x); }