summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorMatt Kraai2000-10-23 18:03:46 +0000
committerMatt Kraai2000-10-23 18:03:46 +0000
commit207061ac0d400f663dc411c132d7fc07dca7d496 (patch)
tree4d50f76923e65e6247dc399f20b37c5c1bc79487 /archival
parent2be4797a06849cf5c9c4f97e1489d70b7fc8be36 (diff)
downloadbusybox-207061ac0d400f663dc411c132d7fc07dca7d496.zip
busybox-207061ac0d400f663dc411c132d7fc07dca7d496.tar.gz
Fix error messages.
Diffstat (limited to 'archival')
-rw-r--r--archival/gunzip.c8
-rw-r--r--archival/gzip.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c
index 7a360a6..0c9d406 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -1120,11 +1120,11 @@ int in, out; /* input and output file descriptors */
if (res == 3) {
errorMsg(memory_exhausted);
} else if (res != 0) {
- errorMsg("invalid compressed data--format violated");
+ errorMsg("invalid compressed data--format violated\n");
}
} else {
- errorMsg("internal error, invalid method");
+ errorMsg("internal error, invalid method\n");
}
/* Get the crc and original length */
@@ -1153,10 +1153,10 @@ int in, out; /* input and output file descriptors */
/* Validate decompression */
if (orig_crc != updcrc(outbuf, 0)) {
- errorMsg("invalid compressed data--crc error");
+ errorMsg("invalid compressed data--crc error\n");
}
if (orig_len != (ulg) bytes_out) {
- errorMsg("invalid compressed data--length error");
+ errorMsg("invalid compressed data--length error\n");
}
/* Check if there are more entries in a pkzip file */
diff --git a/archival/gzip.c b/archival/gzip.c
index e518ffd..6b25e47 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -1381,7 +1381,7 @@ int length;
(char *) window + start, length) != EQUAL) {
fprintf(stderr,
" start %d, match %d, length %d\n", start, match, length);
- errorMsg("invalid match");
+ errorMsg("invalid match\n");
}
if (verbose > 1) {
fprintf(stderr, "\\[%d,%d]", start - match, length);
@@ -2911,7 +2911,7 @@ int eof; /* true if this is the last block for a file */
#endif
/* Since LIT_BUFSIZE <= 2*WSIZE, the input data must be there: */
if (buf == (char *) 0)
- errorMsg("block vanished");
+ errorMsg("block vanished\n");
copy_block(buf, (unsigned) stored_len, 0); /* without header */
compressed_len = stored_len << 3;
@@ -3094,7 +3094,7 @@ local void set_file_type()
bin_freq += dyn_ltree[n++].Freq;
*file_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII;
if (*file_type == BINARY && translate_eol) {
- errorMsg("-l used on binary file");
+ errorMsg("-l used on binary file\n");
}
}
@@ -3256,7 +3256,7 @@ char *env; /* name of environment variable */
/* Copy the program name first */
if (oargc-- < 0)
- errorMsg("argc<=0");
+ errorMsg("argc<=0\n");
*(nargv++) = *(oargv++);
/* Then copy the environment args */