summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-03-28 15:16:38 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-04-03 17:45:05 +0200
commitd9f0fdfe1ac986816a3376ee0271f84fb549b0bf (patch)
tree39e4a7b1d5aa79c0a9e07a6ee8a56ac23520e372 /source
parentfec19cecf3cde537dceac7bd1da7f7f0c7097cec (diff)
downloadmupdf-d9f0fdfe1ac986816a3376ee0271f84fb549b0bf.tar.xz
Fix error message in tar archive code.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/untar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/untar.c b/source/fitz/untar.c
index ad93e1e3..1588a8ac 100644
--- a/source/fitz/untar.c
+++ b/source/fitz/untar.c
@@ -66,7 +66,7 @@ static void ensure_tar_entries(fz_context *ctx, fz_tar_archive *tar)
offset = fz_tell(ctx, file);
n = fz_read(ctx, file, (unsigned char *) name, nelem(name));
if (n < nelem(name))
- fz_throw(ctx, FZ_ERROR_GENERIC, "premature end of data in zip entry name");
+ fz_throw(ctx, FZ_ERROR_GENERIC, "premature end of data in tar entry name");
name[nelem(name) - 1] = '\0';
if (strlen(name) == 0)
@@ -75,7 +75,7 @@ static void ensure_tar_entries(fz_context *ctx, fz_tar_archive *tar)
fz_seek(ctx, file, 24, 1);
n = fz_read(ctx, file, (unsigned char *) octsize, nelem(octsize));
if (n < nelem(octsize))
- fz_throw(ctx, FZ_ERROR_GENERIC, "premature end of data in zip entry size");
+ fz_throw(ctx, FZ_ERROR_GENERIC, "premature end of data in tar entry size");
size = otoi(octsize);
fz_seek(ctx, file, 20, 1);